1. #1

    Default Can a NestedLayoutPanel accept a toolbar?

    Can a NestedLayoutPanel accept a toolbar?


    I was trying to add a toolbar to a NestedLayoutPanel, and figuring it was a child of ContentPanel, that it might have been possible.

    However, this seems to do nothing:
    Code:
    runInstance = new YAHOO.ext.NestedLayoutPanel(innerLayout, {title:'Start Page', toolbar:tb});
    Here's a more detailed version of my script:
    Code:
    // the inner layout houses the Controls toolbar, the Graph and the Summary grid
                var innerLayout = new YAHOO.ext.BorderLayout('Main', {
                    north: {
                        split:true,
                        initialSize: 350,
                        minSize: 100,
                        maxSize: 500,
                        autoScroll:false,
                        collapsible:true,
                        titlebar: true,
                        animate: true,
                        cmargins: {top:2,bottom:2,right:0,left:0}
                    },
                    center: {
                        autoScroll:false,
                        titlebar:true
                    }
                });
                innerLayout.beginUpdate();
                
                innerLayout.add('north', new YAHOO.ext.ContentPanel('Graph', {title: "Flow Graph",fitToFrame:true}));
    			innerLayout.add('center', new YAHOO.ext.ContentPanel('Summary', {title: 'Result Summary',fitToFrame:true}));
                
    			// restore innerLayout state
                innerLayout.restoreState();
                innerLayout.endUpdate(true);
                
                // add the nested layout
    			var tb = new YAHOO.ext.Toolbar('Main-tb');
                	tb.addButton({text: 'Next Step', 
    							 className: 'nextstep-btn'});
                	tb.addSeparator();
                	tb.addButton({text: 'Run to End', 
    							 className: 'runtoend-btn'});
                
                runInstance = new YAHOO.ext.NestedLayoutPanel(innerLayout, {title:'Dashboard', toolbar:tb});
                layout.add('center', runInstance);
                
                // restore any state information
                layout.restoreState();
                layout.endUpdate();
    Where my HTML looks like this:
    Code:
    <div id="Main" class="ylayout-inactive-content">
       <div id="Main-tb" class="ylayout-inactive-content"></div>
       <div id="Main-body" class="ylayout-inactive-content">
          <div id="Graph" class="ylayout-inactive-content"></div>
          <div id="Summary" class="ylayout-inactive-content"></div>
      </div>
    </div>
    Any tips about what I'm missing would be apprciated!

    PS - keep up the great work on this toolkit!

  2. #2
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    17
    jack.slocum will become famous soon enough jack.slocum will become famous soon enough

      0  

    Default


    This could be doing it:

    <div id="Main-tb" class="ylayout-inactive-content"></div>

    Try removing that (not needed for toolbar) and see if it works.

  3. #3

    Default


    Ha ha!!!

    That did it. I needed to adjust the constructor of the layout to put a top margin on the north panel so there was enough room for the toolbar, but it was effectve.

    The tools show up right where I wanted them, just underneath the tabs.

    Thanks Jack!

Similar Threads

  1. Using Toolbar in NestedLayoutPanel...
    By davy_wei in forum Ext 1.x: Bugs
    Replies: 1
    Last Post: 27 Jun 2007, 11:40 PM
  2. Have problem with NestedLayoutPanel
    By andrey.korolyov in forum Ext 1.x: Help & Discussion
    Replies: 7
    Last Post: 26 Mar 2007, 5:13 AM
  3. NestedLayoutPanel
    By gedw99 in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 22 Mar 2007, 3:37 AM
  4. Changes in BorderLayout with NestedLayoutPanel?
    By kjordan in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 19 Feb 2007, 8:31 PM
  5. NestedLayoutPanel and tabs
    By ines in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 30 Nov 2006, 8:00 AM

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."