Changes between Initial Version and Version 1 of Ticket #9808


Ignore:
Timestamp:
Sep 2, 2009, 1:47:50 AM (10 years ago)
Author:
Eugene Lazutkin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #9808

    • Property Owner anonymous deleted
    • Property Component changed from General to Dijit
  • 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".
     1Recent 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".
    32
    43The code is the following:
     4
     5{{{
     6#!js
    57//Create first level tabs
    6                 var tabObjectContainer = new dijit.layout.TabContainer({title:"Objects config",id:"tabObjectContainer",tabPosition:"left-h",style:"width:100%; height:100%", region:"center",tabStrip:true});
     8var tabObjectContainer = new dijit.layout.TabContainer({title:"Objects config",id:"tabObjectContainer",tabPosition:"left-h",style:"width:100%; height:100%", region:"center",tabStrip:true});
    79
    810//Second level tabs
    9                 var ledger1 = new dijit.layout.TabContainer({title:"Ledger I",id:"tabLedgers1",style:"width:100%; height:100%",tabPosition:"top",tabStrip:true});
     11var ledger1 = new dijit.layout.TabContainer({title:"Ledger I",id:"tabLedgers1",style:"width:100%; height:100%",tabPosition:"top",tabStrip:true});
    1012//We add the details tabs
    11                 var tabLedger1Accruals =  new dijit.layout.TabContainer({title:"Accruals ledger 1",id:"tabLedger1Accruals",style:"width:100%; height:100%",tabStrip:true})
    12                 ledger1.addChild(tabLedger1Accruals);
    13                 ledger1.addChild(new dijit.layout.TabContainer({title:"Cash flow ledger 1",id:"tabLedger1CashFlow",style:"width:100%; height:100%",tabStrip:true}));
    14                 ledger1.addChild(new dijit.layout.TabContainer({title:"Transfers ledger 1",id:"tabLedger1Transfer",style:"width:100%; height:100%",tabStrip:true}));
    15                 ledger1.addChild(new dijit.layout.TabContainer({title:"output ledger 1",id:"tabLedger1Output",style:"width:100%; height:100%",tabStrip:true}));
     13var tabLedger1Accruals =  new dijit.layout.TabContainer({title:"Accruals ledger 1",id:"tabLedger1Accruals",style:"width:100%; height:100%",tabStrip:true})
     14ledger1.addChild(tabLedger1Accruals);
     15ledger1.addChild(new dijit.layout.TabContainer({title:"Cash flow ledger 1",id:"tabLedger1CashFlow",style:"width:100%; height:100%",tabStrip:true}));
     16ledger1.addChild(new dijit.layout.TabContainer({title:"Transfers ledger 1",id:"tabLedger1Transfer",style:"width:100%; height:100%",tabStrip:true}));
     17ledger1.addChild(new dijit.layout.TabContainer({title:"output ledger 1",id:"tabLedger1Output",style:"width:100%; height:100%",tabStrip:true}));
    1618
    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();             
     19dojo.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);
     20tabObjectContainer.addChild(ledger1);
     21ledger1.startup();             
     22}}}