Opened 11 years ago

Closed 11 years ago

#6862 closed defect (worksforme)

BorderContainer addChild bug

Reported by: guest Owned by: Adam Peller
Priority: high Milestone: 1.2
Component: Dijit Version: 1.1.1
Keywords: Cc:
Blocked By: Blocking:

Description

After recent changes in BorderContainer? a bug still remain adding a child with a splitter programmatically when the BorderContainer? is already started. You can see it in the attached test.

I changed addChild to fix it.

Giovanni Porcari (AKA genro)

giovanni.porcari@…

addChild: function(/*Widget*/ child, /*Integer?*/ insertIndex){
		this.inherited(arguments);
		this._setupChild(child);
		if(this._started){
		    var region = child.region;
			if(this._splitters[region]){
				dojo.place(this._splitters[region], child.domNode, "after");
				this._computeSplitterThickness(region); 
			}
			this._layoutChildren(); 
    }
},

Attachments (1)

test_BorderContainer_prog.html (2.2 KB) - added by guest 11 years ago.

Download all attachments as: .zip

Change History (5)

Changed 11 years ago by guest

comment:1 Changed 11 years ago by bill

"Recent changes" presumably refers to #6777.

comment:2 Changed 11 years ago by bill

Owner: set to Adam Peller

comment:3 Changed 11 years ago by Adam Peller

Milestone: 1.2

comment:4 Changed 11 years ago by Adam Peller

Resolution: worksforme
Status: newclosed

lots happened in the last 3 months, seems to work now (though you don't say exactly what the bug is, so I cannot be sure) Please reopen if anything is still wrong. Thanks.

Note: See TracTickets for help on using tickets.