开发者

Element moved using JS/jQuery PIE not updating

I have moved an element using JS on body load but PIE still have the background of the element visible or in the wrong position. However, o开发者_如何学Cn subsequent clicks/interaction that trigger movements/animation, PIE works ok. Why is that? I even tried to use setTimeout(..., 1200) to update the element position, but it does not seem to update

I am thinking if there was a PIE ready event that I can use to update element position, it will fix it?

$masthead.css({top: "-" + ($masthead.outerHeight() - 20) + "px"});

Also I notice PIE will place those elements (PIE generated backgrounds etc) in position as if no JS (that changes classname/position) was run. I suspect thats the problem


I used images for drop shadows instead ... but I think PIE.js will work.

// after changes by JS
PIE.attach($("elem")[0]);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜