CSS3 PIE Forums
http://css3pie.com/forum/

PIE styles dont render until browser is resized by a hair
http://css3pie.com/forum/viewtopic.php?f=3&t=2012
Page 1 of 1

Author:  ctcrmcou [ Wed Mar 13, 2013 10:16 am ]
Post subject:  PIE styles dont render until browser is resized by a hair

I just started using PIE recently and am pleased with it - to a degree.

I use very simple shadow boxes or radius corners around elements with position:relative-styled parents, as the instructions suggest. And yes the elements do pick up the styles - sometimes. When they don't I have to resize the browser just a pixel and then the styles appear. But its very inconsistent. I'm using IE 8. If I knew of a way to force a rerender in the onload event I could live with that to force a redraw.

Any suggestions?

Author:  Mumrah [ Wed Mar 27, 2013 7:00 am ]
Post subject:  Re: PIE styles dont render until browser is resized by a hai

I've had that problem as well, but only when there are nested divs on which pie is applied.
And when refreshing, it didn't work all of the time in Internet Explorer.
But when you remove the behavior of an element and add the pie back on, it does work. And if you want to get all of the IDs in the div page for example you can do:

var IDs = [];
$("#page").find("div").each(function(){ IDs.push(this.id); });
$.each(IDs, function(index, value) {
$('#' + value).css('behavior','none');
$('#' + value).css('behavior','url("pie/PIE.php")');
});

Hopefully this works :)

Grtz,
David

Page 1 of 1 All times are UTC - 7 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/