Changes between Initial Version and Version 1 of Ticket #11413
- Timestamp:
- Jul 4, 2010, 9:15:35 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #11413
- Property Owner anonymous deleted
-
Property
Priority
changed from
high
tonormal
-
Property
Component
changed from
General
toDijit
-
Ticket #11413 – Description
initial v1 1 1 I needed to empty my AccordionContainer to reload w/ new data. When I remove the child which was selected, it failed in StackContainer.js in removeChild(), in this block of code (line 144, I believe): 2 2 3 {{{ 3 4 if(this._started){ 4 5 // in case the tab titles now take up one line instead of two lines … … 6 7 this.layout(); 7 8 } 9 }}} 8 10 9 11 layout() eventually results in a check to see if there's a selectedChildWidget, and if so, it resizes it. Because this call to layout() happens before selectedChildWidget is set to undefined, but after the selectedChildWidget's been partially deleted, the attempt to resize the half-deleted selectedChildWidget fails. … … 11 13 My proposed solution is to move the block of code pasted above to be below this block of code: 12 14 15 {{{ 13 16 if(this.selectedChildWidget === page){ 14 17 this.selectedChildWidget = undefined; … … 20 23 } 21 24 } 22 25 }}} 23 26 24 27 I'm planning to go live w/ my dojo-based site soon, so I have set this to "blocker."