1. #1
    Ext User
    Join Date
    Mar 2007
    Posts
    20
    Vote Rating
    0
    Dextro is on a distinguished road

      0  

    Default borderlayout problem

    borderlayout problem


    I try to make a borderlayout. I have a working example. But in another place I get the following error and I really don't know the answer.


    Code:
    Layout = function(){
            return {
                init: function(){
                   var layout = new YAHOO.ext.BorderLayout(document.body, {
                   		hideOnLayout: true,
                        layoutheader: {
                            split:false,
                            initialSize: 80
                        }
                    });
                    layout.add('header', new YAHOO.ext.ContentPanel('layoutheader', {fitToFrame:true}));
    
               }
         }
    
    }();
    YAHOO.ext.EventManager.onDocumentReady(Layout.init, Layout, true);
    Code:
    this.regions[target] has no properties
    add("header", Object closable=false loaded=false active=false)yui-ext-debug.js (line 12343)
    init()layout.js (line 11)
    namespace()utilities.js (line 2)
    fireDocReady()yui-ext-debug.js (line 3386)
    CustomEvent(DOMContentLoaded )event-min.js (line 1)
    [Break on this error] return this.regions[target].add(panel);
    Does someone know what goes wrong here?

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,483
    Vote Rating
    35
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Where in the documentation and examples do you see "header" as the name of a Region?

  3. #3
    Ext User
    Join Date
    Mar 2007
    Posts
    20
    Vote Rating
    0
    Dextro is on a distinguished road

      0  

    Default


    Damn, I thought I could give it any name I want. Not very smart.

    Can you give me a hint where I can find that in the documentation? Just to solve such stupid mistakes by my self the next time.

  4. #4
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,483
    Vote Rating
    35
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Go to the main page. Jack's blog has a lot of worked examples. And the "DOCUMENTATION" link works, and has examples.

Similar Threads

  1. BorderLayout : Z-index problem
    By saasira in forum Ext 3.x: Help & Discussion
    Replies: 9
    Last Post: 10 Mar 2010, 8:34 AM
  2. Possible BorderLayout problem?
    By salix in forum Ext 1.x: Bugs
    Replies: 11
    Last Post: 26 Mar 2007, 10:13 AM
  3. BorderLayout Problem.
    By fsuguinness in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 20 Mar 2007, 6:09 AM
  4. Newbie problem with BorderLayout
    By dotnetCarpenter in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 10 Mar 2007, 10:25 AM
  5. Newbie with a problem with BorderLayout and Tabs
    By ElGranAzul in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 24 Nov 2006, 11:29 AM

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar