Changes between Initial Version and Version 1 of Ticket #9808
- Timestamp:
- Sep 2, 2009, 1:47:50 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #9808
- Property Owner anonymous deleted
-
Property
Component
changed from
General
toDijit
-
Ticket #9808 – Description
initial v1 1 Hi, 2 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 whihc some children tabcontainers are added as. It broke at the main tab container's startup with an error message: "page is undefined". 1 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". 3 2 4 3 The code is the following: 4 5 {{{ 6 #!js 5 7 //Create first level tabs 6 8 var tabObjectContainer = new dijit.layout.TabContainer({title:"Objects config",id:"tabObjectContainer",tabPosition:"left-h",style:"width:100%; height:100%", region:"center",tabStrip:true}); 7 9 8 10 //Second level tabs 9 11 var ledger1 = new dijit.layout.TabContainer({title:"Ledger I",id:"tabLedgers1",style:"width:100%; height:100%",tabPosition:"top",tabStrip:true}); 10 12 //We add the details tabs 11 12 13 14 15 13 var tabLedger1Accruals = new dijit.layout.TabContainer({title:"Accruals ledger 1",id:"tabLedger1Accruals",style:"width:100%; height:100%",tabStrip:true}) 14 ledger1.addChild(tabLedger1Accruals); 15 ledger1.addChild(new dijit.layout.TabContainer({title:"Cash flow ledger 1",id:"tabLedger1CashFlow",style:"width:100%; height:100%",tabStrip:true})); 16 ledger1.addChild(new dijit.layout.TabContainer({title:"Transfers ledger 1",id:"tabLedger1Transfer",style:"width:100%; height:100%",tabStrip:true})); 17 ledger1.addChild(new dijit.layout.TabContainer({title:"output ledger 1",id:"tabLedger1Output",style:"width:100%; height:100%",tabStrip:true})); 16 18 17 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); 18 tabObjectContainer.addChild(ledger1); 19 ledger1.startup(); 19 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); 20 tabObjectContainer.addChild(ledger1); 21 ledger1.startup(); 22 }}}