Opened 14 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: |
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:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
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
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Closing because no testcase and no response.
Note: See
TracTickets for help on using
tickets.
my situation:
TabContainer?