This is a followup from my previous post (http://css3pie.com/forum/viewtopic.php?f=4&t=1112).I have a hidden element, which can be shown/hidden using jQuery toggle(). Initially it is hidden and if it is shown for the first time the concerning div is misplaced. Any consecutive toggles will render it at the correct position. So far, I have tested it with IE8 only.

The first time toggle is clicked the div is placed at a top left position instead of centered above the already shown one. After the second toggle it will be placed correctly.

I guess that's a bug. Is there any workaround for this yet?

Thanks for any hints.

Wed Jul 27, 2011 3:35 am

erich.stehr

Joined: Fri Oct 21, 2011 2:03 pmPosts: 1

Re: PIE rendered element is misplaced using jQuery toggle()

I ran into that myself: what worked for me with 1.0beta5 was to use the .js (.htc didn't want to work with SharePoint 2010 on the AspMenu generated flyout menus) and attach on mouseover and detach on mouseout:

Hiding / showing doesn't tell PIE about the placement of an element. You need to alert PIE, by sending it a move or resize event, so that it can check where the element actually is (and its size) and adjust accordingly.

Who is online

Users browsing this forum: No registered users and 1 guest

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