Opened 14 years ago
Closed 14 years ago
#6835 closed defect (fixed)
ExpandoPane shows content when collapsed
Reported by: | guest | Owned by: | dante |
---|---|---|---|
Priority: | high | Milestone: | 1.2 |
Component: | DojoX Widgets | Version: | 1.1.1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
The test_Expando_more.html, demonstrates that a closed left expando, shows a plus sign and a gray bar. It does not show the TabContainer? which is on the left side. However, if an expando is created programmatically, it will show some of the TabContainer? when it is collapsed. Here's the code
var parent = document.getElementById ("container0"); var bc = new dijit.layout.BorderContainer ( { style : "width:500px; height:450px; border:2px solid black", id : "0" } ); bc.startup(); dojo.byId (parent.id).appendChild (bc.domNode); var div = document.createElement ("div"); dijit.byId (bc).domNode.appendChild (div); var ep = new dojox.layout.ExpandoPane ( { title : "ep Test", region : "right", id : "1", style : "width:250px; height:275px;" }, div); ep.startup(); bc.addChild (ep); constructTabContainer(ep, "2"); function constructTabContainer(parent, cid) { console.log ("Parent id: " + parent.id); var div = document.createElement ("div"); dijit.byId(parent).domNode.appendChild (div); var tabContainer = new dijit.layout.TabContainer ( { tabPosition : "bottom", attachParent : "true", id : cid }, div); tabContainer.domNode.height = "400px"; tabContainer.domNode.width = "275px"; var cp1 = new dijit.layout.ContentPane ( { id : cid + ".1", title : "CP1" }); cp1.domNode.style.height="400px"; cp1.domNode.style.border="2px solid red"; cp1.setContent("Content for CP1"); tabContainer.addChild(cp1); var cp2 = new dijit.layout.ContentPane ({ id : cid + ".2", title : "CP2" }); cp2.domNode.style.height="400px"; cp2.setContent("Content for CP2"); tabContainer.addChild(cp2); tabContainer.startup(); }
Change History (2)
comment:1 Changed 14 years ago by
Milestone: | → 1.2 |
---|
comment:2 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
(In [14226]) fixes #6835 - but the above case is invalid. append the tabContainer to the expandoPane.containerNode. still removing the need for attachParent and assuming we always need to size our container after each expand is probably a safe bet. also cleanup test case, remove duplicate bottom region and fix path to api SMD. small grid container flub. !strict