Opened 12 years ago

Closed 12 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:

Description

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;

		page.domNode.style.display="";
		page.resize();
	},

Change History (3)

comment:2 Changed 12 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 12 years ago by bill

Resolution: worksforme
Status: newclosed

Closing because no testcase and no response.

Note: See TracTickets for help on using tickets.