Results 1 to 2 of 2

Thread: Add horizontal scrollbar to FormPanel in window

  1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    59
    Vote Rating
    0
      0  

    Default Add horizontal scrollbar to FormPanel in window

    Hello together

    Can somebody say me the correct way to achieve that a FormPanel in a Window gets a horizontal scrollbar if it's bigger than the width of the window? The config "autoScroll: true" doesn't work. Maybe you can give me an example.

    Thanks in advance!

    Kind regards, extjser12

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,409
    Answers
    716
    Vote Rating
    505
      0  

    Default

    Does this work as expected?

    Code:
    Ext.define('MyApp.view.MyWindow', {
        extend: 'Ext.window.Window',
    
        height: 250,
        width: 400,
        autoScroll: true,
        title: 'My Window',
    
        initComponent: function() {
            var me = this;
    
            Ext.applyIf(me, {
                items: [
                    {
                        xtype: 'form',
                        width: 1000,
                        bodyPadding: 10,
                        title: 'My Form'
                    }
                ]
            });
    
            me.callParent(arguments);
        }
    
    });
    
    Ext.create('MyApp.view.MyWindow', {
        
    }).show();
    Regards,
    Scott.

Posting Permissions

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