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:


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"
} );
dojo.byId ( (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);
bc.addChild (ep);
constructTabContainer(ep, "2");

function constructTabContainer(parent, cid) {
    console.log ("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"
    });"400px";"2px solid red";
    cp1.setContent("Content for CP1");

    var cp2 = new dijit.layout.ContentPane ({
        id : cid + ".2",
        title : "CP2"
    cp2.setContent("Content for CP2");


Change History (2)

comment:1 Changed 14 years ago by dante

Milestone: 1.2

comment:2 Changed 14 years ago by dante

Resolution: fixed
Status: newclosed

(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

Note: See TracTickets for help on using tickets.