Results 1 to 2 of 2

Thread: extjs 4.1.1a: tab setTitle will reset form panel scrollbar if form panel has fieldset

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-8231 in 5.1.3.228.
  1. #1
    Ext JS Premium Member
    Join Date
    Jun 2011
    Location
    St. Louis
    Posts
    220
    Vote Rating
    9
      0  

    Default extjs 4.1.1a: tab setTitle will reset form panel scrollbar if form panel has fieldset

    Not sure this is bug or not. Also not sure how could this happen! Tested with both FF16.0.2 and Chrome V23.

    See attached simplified test code and using following steps you will see the problem:
    (1) Load the program.
    (2) Reduce the browser window to see the vertical scrollbar (see tab-A.gif).
    (3) Move vertical scrollbar to bottom.
    (4) Now you will see when tab setTitle (simulate at the background with this test), the scrollbar move to the middle (see tab-B.gif).
    (5) Then it will be very difficult to access field: 'Test Input'.

    Please look at the problem to see if you can help to prevent the problem. Thank you for the support.



    PHP Code:
    Ext.onReady(function() {
        var 
    viewport Ext.create('Ext.Viewport', {
        
    layout'border',
        
    items: [{
            
    region'center',
            
    xtype'tabpanel',
            
    items: [{ 
                
    xtype'tabpanel'
                
    title'Tab Title Change'
                
    items: [{
                    
    title'Form',
                    
    autoScrolltrue,
                    
    layout'anchor',
                            
    items: [{
                                    
    xtype'fieldset',
                                   
    title'Your Name',
                            
    flex1,
                            
    layout: { type'vbox'align'stretch'pack'start'    },
                                    
    items: [{
                            
    xtype'textfield',
                                        
    fieldLabel'First'
                                    
    }, {
                             
    xtype'textfield',
                                        
    fieldLabel'MI'
                                    
    }, {
                            
    xtype'textfield',
                                        
    fieldLabel'Last'
                                    
    }, {
                            
    xtype'textfield',
                                        
    fieldLabel'Email Address'
                                    
    }]
                            }, {
                                    
    xtype'textfield',
                                    
    fieldLabel'Subject',
                            
    anchor'100%'
                            
    }, {
                                    
    xtype'fieldset',
                                    
    title'Message',
                            
    height300,
                            
    flex1,
                            
    layout: { type'vbox'align'stretch'pack'start'    },
                                   
    items: [{
                                        
    xtype'textareafield'
                            
    }]
                                }, {
                        
    xtype'textfield',
                                    
    fieldLabel'Test Input'
                            
    }]                
                }]
            },{
                    
    title'Tab 2',
                   
    html'This is tab 2 content.'
            
    },{
                   
    title'Tab 3',
                    
    html'This is tab 3 content.'
            
    }],
                    
    listeners: {
                        
    afterrender: function () {
                    var 
    me thisi=3tab me.getComponent(0);
                    
    Ext.TaskManager.start({
                        
    run: function(){ 
                            
    i++;
                            
    tab.setTitle'Tab'+i);
                            
    console.info' change tab title' );
                        },
                        
    interval1000
                    
    });
                        },
                    }

        }]
      });

    }); 
    Attached Images Attached Images

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,335
    Vote Rating
    1297
      0  

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

Posting Permissions

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