Forums
View unanswered posts | View active topics It is currently Wed Apr 23, 2014 1:55 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 PIE_Uncompressed.htc

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
Profile

Joined: Wed Jul 14, 2010 11:46 am
Posts: 1430
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
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 3 guests


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.