Opened 15 years ago

Closed 14 years ago

#3747 closed defect (worksforme)

First Tab Selected doesn't have correctly layout

Reported by: guest Owned by: bill
Priority: high Milestone: 0.9
Component: Dijit Version: 0.9
Keywords: first child resize Cc:
Blocked By: Blocking:


First Tab Selected in TabContainer? doesn't have correctly layout.

The fix:

In StackContainer?.js

In function _showChild

add page.resize(); in the end of the function like this:

_showChild: function(/*Widget*/ page){
		var children = this.getChildren();
		page.isFirstChild = (page == children[0]);
		page.isLastChild = (page == children[children.length-1]);
		page.selected = true;"";

Change History (3)

comment:2 Changed 15 years ago by bill

I just took that code out of _showChild(). The first tab shown should be correctly sized when the TabContainer::layout() function is called. Not happening for you? Do you have a testcase? Does it happen with the tests that are part of dijit?

comment:3 Changed 14 years ago by bill

Resolution: worksforme
Status: newclosed

Closing because no testcase and no response.

Note: See TracTickets for help on using tickets.