Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha - Training Team mrsunshine's Avatar
    Join Date
    Sep 2008
    Location
    Germany - Darmstadt
    Posts
    690
    Vote Rating
    12
    mrsunshine will become famous soon enough

      0  

    Default [FIXED-107] Ext.TabPanel doLayout()

    [FIXED-107] Ext.TabPanel doLayout()


    In Ext.TabPanel the doLayout() function is needed, cause otherwise if you add() a new item afterrender, the TabBar will not update and the new tab is not rendered.

    It works if you add the doLayout to Ext.TabPanel:

    PHP Code:
                doLayout: function() {
                    
    Ext.TabPanel.superclass.doLayout.call(this);
                    
    this.getTabBar().doLayout();
                } 

  2. #2
    Ext User
    Join Date
    Oct 2008
    Location
    Ger
    Posts
    178
    Vote Rating
    0
    tubamanu is on a distinguished road

      0  

    Default


    hi,

    has anyone tested this solution? in my small demo application this fix is not working.....maybe i will wait for the next release....

  3. #3
    Sencha - Training Team mrsunshine's Avatar
    Join Date
    Sep 2008
    Location
    Germany - Darmstadt
    Posts
    690
    Vote Rating
    12
    mrsunshine will become famous soon enough

      0  

    Default


    Yes, I tested it. How did you use it in your application? Post some code maybe i can help you

  4. #4
    Ext User
    Join Date
    Oct 2008
    Location
    Ger
    Posts
    178
    Vote Rating
    0
    tubamanu is on a distinguished road

      0  

    Default


    i used it as u descriped in the thread one day ago....
    my code is this.....

    Code:
    cf.Main = function(){return {
        
        theTabPanel                :false,
        theFirstTab                :false,
        theSecondTab            :false,
        
        init: function () {
            this.initSecondTab();
            this.initFirstTab();
            this.initTabPanel();
            this.theTabPanel.add(this.theFirstTab);
            this.theTabPanel.add(this.theSecondTab);
            this.theTabPanel.doLayout();
        },
        
        
        initSecondTab: function () {
            this.theSecondTab = new Ext.Panel({
                title: 'Tab Nr. 2'
            });
        },
        
    
        initFirstTab: function () {
            this.theFirstTab = new Ext.Panel({
                title: 'Tab Nr. 1'
            });
        },
        
        
        initTabPanel: function () {
            this.theTabPanel =  new Ext.TabPanel({
                fullscreen: true,
                animation: 'slide',
                doLayout: function() {
                    Ext.TabPanel.superclass.doLayout.call(this);
                    this.getTabBar().doLayout();
                }
            });
        }
        
    };}();

Similar Threads

  1. Replies: 0
    Last Post: 19 Oct 2009, 11:28 AM
  2. Replies: 0
    Last Post: 7 Aug 2009, 11:11 AM
  3. window > tabpanel > tab > form - rendering issue (dolayout ?)
    By nadeemshafi9 in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 18 Apr 2009, 11:00 AM
  4. TabPanel and doLayout problem
    By jwong78 in forum Ext 2.x: Help & Discussion
    Replies: 14
    Last Post: 1 May 2008, 5:57 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