Forums
View unanswered posts | View active topics It is currently Sun Nov 23, 2014 7:16 pm



Reply to topic  [ 4 posts ] 
 PIE reordering my divs 
Author Message

Joined: Fri Jun 08, 2012 10:28 am
Posts: 2
Post PIE reordering my divs
I work on a GUI web framework, we're giving CSS3 PIE a trie for some rounded corners here and there. We have a basic layout method which just uses jQuery's append to add elements to a container div, nothing fancy. When all is said and done, the divs (which are pie elements) are out of order - backwards.

Removing the .htc fixes the issue. Does anyone know why this might happen?


Fri Jun 08, 2012 10:32 am
Profile

Joined: Wed Jul 14, 2010 11:46 am
Posts: 1446
Post Re: PIE reordering my divs
Does your framework use the number of sibling elements to determine insertion position? Remember that PIE inserts an extra element as a previous sibling to each target element, so this would throw off your counts if you don't take it into account.


Fri Jun 08, 2012 11:14 am
Profile

Joined: Fri Jun 08, 2012 10:28 am
Posts: 2
Post Re: PIE reordering my divs
Hah! Well done! Definitely the problem. I almost don't want to put pie on my root elements. Hmmm.. Ok! Thanks.


Fri Jun 08, 2012 1:07 pm
Profile

Joined: Sun Jun 24, 2012 9:00 pm
Posts: 1
Post Re: PIE reordering my divs
Awesome. I had a similar issue with the positioning of my divs. They were all going out of whack. Thanks for that.


Sun Jun 24, 2012 9:17 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: Yahoo [Bot] and 2 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.