View unanswered posts | View active topics It is currently Sun Nov 17, 2019 7:29 pm

Reply to topic  [ 2 posts ] 
 Fix For Misaligned Table Borders When Scrolling 
Author Message

Joined: Fri Jun 03, 2011 4:34 pm
Posts: 2
Post Fix For Misaligned Table Borders When Scrolling
If you apply border images to a table using PIE it has trouble when you scroll. The border images start jumping around. A quick search of the forums netted no answers, so I delved into the source and found the solution. I'm not sure what else this might break, but it certainly fixed my site (in IE8). So I'll post it to help others with the same problem and perhaps it'll get integrated into the main code.

The problem is on line 2155 of the latest

By default the line is like this:
docEl = doc.documentElement;

However, if you change it to this, everything starts working:
docEl = doc.body;

It seems that scrollTop and clientTop are properties of the body, not the document. I'm not an expert on this, so maybe this is a change in IE8? Or maybe its just always been a bug, but its rare to fall back to the document level with these things?

Anyway, its also easy enough to changed in the compressed version to. Search for doc.documentElement. Find the SECOND hit, then replace it with doc.body. I would attach a modified version of the file, but I'm not sure if that is allowed.

Fri Jun 03, 2011 4:42 pm

Joined: Wed Jul 14, 2010 11:46 am
Posts: 1452
Post Re: Fix For Misaligned Table Borders When Scrolling
Thank you for the investigation. I'll give your fix a try and make sure it works across versions. :)

Fri Jun 03, 2011 5:07 pm
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.