Results 1 to 2 of 2

Thread: element hide hide show bug

  1. #1
    Ext User
    Join Date
    Mar 2007
    Posts
    108
    Vote Rating
    0
      0  

    Default element hide hide show bug

    Hi I have:

    Code:
    var el = getEl('main');
    el.hide();
    el.show(true,2.0);
    if you try to fire this code multiple times in IE7, it will stop showing the element

    Ive fixed with the following
    Code:
    var el = getEl('main');
    el.hide();
    el.show(true,2.0,el.dom.style.visibility = "");
    regards

  2. #2
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    New York, NY
    Posts
    6,956
    Vote Rating
    20
      0  

    Default

    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

  1. Element.show() and hide()
    By thejoker101 in forum Ext 1.x: Help & Discussion
    Replies: 5
    Last Post: 5 Jan 2008, 5:24 AM
  2. How to show/hide ytb-text, and ytb-sep element?
    By franklt69 in forum Ext 1.x: Help & Discussion
    Replies: 4
    Last Post: 3 Jan 2007, 5:45 AM
  3. Show/Hide element doesnt work well with css?
    By TommyMaintz in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 29 Dec 2006, 11:04 AM
  4. Show and Hide.....
    By genius551v in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 15 Nov 2006, 9:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •