Changeset 15137

Show
Ignore:
Timestamp:
09/04/08 21:05:46 (3 months ago)
Author:
bill
Message:

Fixes #5821, fixes #7594: programatically adding tab to empty TabContainer? fails.
Problem was that we were querying size of tab strip before any tabs had been created,
thus it was coming out as 0.

May also help fix part of #4502 (refs #4502).

!strict

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dijit/trunk/layout/StackContainer.js

    r15036 r15137  
    9999 
    100100                if(this._started){ 
     101                        dojo.publish(this.id+"-addChild", [child, insertIndex]); 
     102 
    101103                        // in case the tab titles have overflowed from one line to two lines 
     104                        // (or, if this if first child, from zero lines to one line) 
    102105                        this.layout(); 
    103  
    104                         dojo.publish(this.id+"-addChild", [child, insertIndex]); 
    105106 
    106107                        // if this is the first child, then select it 
     
    129130 
    130131                if(this.selectedChildWidget === page){ 
     132                        console.log("deleting selected child widget"); 
    131133                        this.selectedChildWidget = undefined; 
    132134                        if(this._started){