Opened 12 years ago

Last modified 12 years ago

#9808 closed defect

tab container broken — at Version 1

Reported by: Jean-Rubin Leonard Owned by:
Priority: high Milestone: 1.4
Component: Dijit Version: 1.3.2
Keywords: tab container page undefined startup Cc: [email protected]
Blocked By: Blocking:

Description (last modified by Eugene Lazutkin)

Recent changes seem to have broken my tab container. After debugging with D. Machi, we found out it was probably [19970]. After reverting to [19969], code is running fine. The broken code creates a main dijit.layout.TabContainer, to which some children tabcontainers are added as. It broke at the main tab container's startup with an error message: "page is undefined".

The code is the following:

//Create first level tabs
var tabObjectContainer = new dijit.layout.TabContainer({title:"Objects config",id:"tabObjectContainer",tabPosition:"left-h",style:"width:100%; height:100%", region:"center",tabStrip:true});

//Second level tabs
var ledger1 = new dijit.layout.TabContainer({title:"Ledger I",id:"tabLedgers1",style:"width:100%; height:100%",tabPosition:"top",tabStrip:true});
//We add the details tabs
var tabLedger1Accruals =  new dijit.layout.TabContainer({title:"Accruals ledger 1",id:"tabLedger1Accruals",style:"width:100%; height:100%",tabStrip:true})
ledger1.addChild(tabLedger1Accruals);
ledger1.addChild(new dijit.layout.TabContainer({title:"Cash flow ledger 1",id:"tabLedger1CashFlow",style:"width:100%; height:100%",tabStrip:true}));
ledger1.addChild(new dijit.layout.TabContainer({title:"Transfers ledger 1",id:"tabLedger1Transfer",style:"width:100%; height:100%",tabStrip:true}));
ledger1.addChild(new dijit.layout.TabContainer({title:"output ledger 1",id:"tabLedger1Output",style:"width:100%; height:100%",tabStrip:true}));

dojo.place(("<div>This is an object. There is more than one ledger. Notice the two vertical ledgers (ledger I and ledger II).</div>"), tabLedger1Accruals.containerNode);
tabObjectContainer.addChild(ledger1);
ledger1.startup();              

Change History (1)

comment:1 Changed 12 years ago by Eugene Lazutkin

Component: GeneralDijit
Description: modified (diff)
Owner: anonymous deleted
Note: See TracTickets for help on using tickets.