Forums
View unanswered posts | View active topics It is currently Tue Jul 22, 2014 9:43 pm



Reply to topic  [ 7 posts ] 
 -pie-png-fix issues 
Author Message

Joined: Thu Nov 18, 2010 5:52 am
Posts: 7
Post -pie-png-fix issues
Hi.
I am having a couple of issues with images jumping around the page in IE6.
I am concerned that I may have not applied the PNG Fix correctly since switching from using DD_belated...

The images concerned are in the footer of a page I am working on. They are floated to the right of each other.

I am implementing the png fix globally on all images as so.

Code:
img{
   -pie-png-fix:true;
   behavior:url(/PIE.htc);
   position:relative;
   float:inherit;
}



Tue Jan 04, 2011 5:27 am
Profile

Joined: Wed Jul 14, 2010 11:46 am
Posts: 1441
Post Re: -pie-png-fix issues
The snippet you posted looks correct. Can you give a URL of the site in question, or post screenshots of the issue you're seeing?


Tue Jan 04, 2011 10:37 am
Profile

Joined: Thu Nov 18, 2010 5:52 am
Posts: 7
Post Re: -pie-png-fix issues
I have uploaded screenshots of the before and after mouse over events.
This happens if the mouse enters anywhere in the footer area.
Before
Attachment:
before-mouse-over.png [178.83 KiB]
Downloaded 515 times


After
Attachment:
after-mouse-over.png [244.66 KiB]
Downloaded 515 times


The JavaScript compiler throws the following error once the picture has moved/disappeared.

Line: 68
Char: 63
Error: Arg: Illegal input string in Vector2D
Code: 0

Please note: I am using the latest Beta (3) and this only happens in IE6, all other IE versions are fine.

Many Thanks for your help so far Jason :)


Wed Jan 05, 2011 3:36 am
Profile

Joined: Wed Jul 14, 2010 11:46 am
Posts: 1441
Post Re: -pie-png-fix issues
Thanks for the link, I was able to debug and find the source of the JS error (divide-by-zero caused by the image dimensions being reported as 0x0, probably before the image has finished loading). I've attached a version with a fix to prevent the divide-by-zero error; I'm not sure that is the only problem involved here but it will at least be a start. Could you please try using the new version and report whether it fixes all or part of the issue?


Attachments:
PIE-dev.zip [45.03 KiB]
Downloaded 287 times
Wed Jan 05, 2011 9:33 am
Profile

Joined: Thu Nov 18, 2010 5:52 am
Posts: 7
Post Re: -pie-png-fix issues
Awesome Jason,
That has fixed it in one attempt!

Thank you very much!

I really should take some time to learn JavaScript myself so that I can debug these kinds of things.

Thanks,

Dave


Mon Jan 10, 2011 3:46 am
Profile

Joined: Wed Jul 14, 2010 11:46 am
Posts: 1441
Post Re: -pie-png-fix issues
Excellent! Thanks for testing that. I'll commit the fix so it goes in the next release.


Mon Jan 10, 2011 8:30 am
Profile

Joined: Sun Jan 30, 2011 2:48 pm
Posts: 7
Post Re: -pie-png-fix issues
I also had this error on the site. Fix help. The error was in IE8, and I do not use-pie-png. Thank you.


Sun Jan 30, 2011 2:54 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 7 posts ] 

Who is online

Users browsing this forum: No registered users 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.