Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User
    Join Date
    Aug 2010
    Location
    Sweden, Västerås
    Posts
    85
    Vote Rating
    0
    Kask is on a distinguished road

      0  

    Default [FIXED-302] Destroyed cmp is still isVisible()

    [FIXED-302] Destroyed cmp is still isVisible()


    After destroying an component, isVisible() will still return true.

    Suggestion to new isVisible method...

    Code:
    /**
      * Returns true if this component is visible.
      * @return {Boolean} True if this component is visible, false otherwise.
      */
    isVisible: function() {
        var visible = !this.hidden,
            destroyed = this.isDestroyed,
            cmp = this.ownerCt;
    
        if(destroyed) {
            return false;
        }
        
        if (visible && this.rendered && cmp) {
            while (cmp) {
                if (cmp.hidden || cmp.collapsed || cmp.isDestroyed) {
                    visible = false;
                    break;
                }
                cmp = cmp.ownerCt;
            }
        }
        return visible;
    }

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,413
    Vote Rating
    129
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Thanks for the bug report.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  3. #3
    Sencha - Sencha Touch Dev Team rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,158
    Vote Rating
    6
    rdougan will become famous soon enough

      0  

    Default


    Thanks - fixed in the next release (.96).

Similar Threads

  1. Replies: 0
    Last Post: 4 Aug 2010, 7:36 AM
  2. [CLOSED] cmp.el.setHeight() breaks cmp.setHeight()
    By NeoVanGoth in forum Ext 3.x: Bugs
    Replies: 3
    Last Post: 9 Apr 2010, 12:08 PM
  3. Replies: 0
    Last Post: 31 Mar 2010, 5:30 AM
  4. Replies: 3
    Last Post: 17 Mar 2010, 9:05 AM
  5. [2.2.1] Grid Cmp in FormPanel Cmp
    By jerrywilborn in forum Ext 2.x: Bugs
    Replies: 7
    Last Post: 15 Apr 2009, 10:38 AM

Thread Participants: 2