Results 1 to 4 of 4

Thread: Getting Object doesnt support property or method for doLayout

  1. #1
    Sencha User
    Join Date
    Jul 2013
    Location
    Washington, DC
    Posts
    16
    Answers
    1

    Default Getting Object doesnt support property or method for doLayout

    Hello,
    Thanks in advance for your response to this question. So, I have code starting out with

    panel = new Ext.TabPanel({
    fullscreen: true,
    cardSwitchAnimation: 'slide',
    ui: 'light',
    items: [timeline, mapPanel]
    });

    i then do

    panel.getTabBar().add([
    {xtype: 'spacer'},
    {
    xtype: 'button',
    iconMask: true,
    iconCls: 'refesh',
    ui: 'plain',
    style: 'margin:0;'
    }
    ]);


    panel.getTabBar().doLayout();

    in the line above panel.getTabBar().doLayout() i get the following error in the VS Output window and yes line 43 is the offending code in this sentence.

    CommandString : DebugConsole/error/DebugConsole1852516845/"Object doesn't support property or method 'doLayout' file:x-wmapp0:www/js/wmatageotweets.js Line:43"
    Error:["Object doesn't support property or method 'doLayout' file:x-wmapp0:www\/js\/wmatageotweets.js Line:43","DebugConsole1852516845"]
    The thread 0xe34 has exited with code 259 (0x103).
    The program '[1772] TaskHost.exe' has exited with code 0 (0x0).

    Thanks

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379
    Answers
    3997

    Default

    Why are you executing doLayout? When you add a component, the layout should happen automatically.
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

  3. #3
    Sencha User
    Join Date
    Jul 2013
    Location
    Washington, DC
    Posts
    16
    Answers
    1

    Default

    I saw some guidance that said that if you adjust your layout after its initially configured, you needed to do that. i saw it on a sencha video

  4. #4
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379
    Answers
    3997

    Default

    Shouldn't be a need to with ST2
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •