-
5 Dec 2006 3:42 PM #1
element hide hide show bug
element hide hide show bug
Hi I have:
if you try to fire this code multiple times in IE7, it will stop showing the elementCode:var el = getEl('main'); el.hide(); el.show(true,2.0);
I´ve fixed with the following
regardsCode:var el = getEl('main'); el.hide(); el.show(true,2.0,el.dom.style.visibility = "");
-
9 Dec 2006 7:16 AM #2
show() with an animation is an asynchronous action. If you fire it multiple times before the animation is complete, you will get multiple animations trying to modify the styles (opacity and visibility) at the same time. This is probably causing concurrency issues.
el.show(true,2.0,el.dom.style.visibility = "");
That is not a callback and is instead being called immediately. While it may work to fix your synchronization issue, having it within the function call doesn't make a lot of sense.
Similar Threads
-
Element.show() and hide()
By thejoker101 in forum Ext 1.x: Help & DiscussionReplies: 5Last Post: 5 Jan 2008, 5:24 AM -
How to show/hide ytb-text, and ytb-sep element?
By franklt69 in forum Ext 1.x: Help & DiscussionReplies: 4Last Post: 3 Jan 2007, 5:45 AM -
Show/Hide element doesnt work well with css?
By TommyMaintz in forum Ext 1.x: Help & DiscussionReplies: 2Last Post: 29 Dec 2006, 11:04 AM -
Show and Hide.....
By genius551v in forum Ext 1.x: Help & DiscussionReplies: 1Last Post: 15 Nov 2006, 9:41 PM


Reply With Quote