Results 1 to 2 of 2

Thread: Best way to add scroll bars to entire application...

  1. #1
    Sencha Premium Member
    Join Date
    Mar 2012
    Location
    Spokane Washington, USA
    Posts
    20
    Vote Rating
    2
      0  

    Default Best way to add scroll bars to entire application...

    I have the following Viewport that houses my app...

    Code:
        Ext.define('my.view.Viewport', {
            extend: 'Ext.Viewport',
            id: 'viewport',
            layout: 'border',
            autoDestroy: true,
    
    
            initComponent: function() {
                this.items = [
                    {xtype: "widget.HeaderContainer"},
                    {xtype: "widget.BodyContainer"},
                    {xtype: "widget.FooterContainer"}
                ];
                this.callParent(arguments);
            }
        });
    As the browser window resizes all the components fill the space nicely but when the window goes below 1024x768 I would like scrollbars to appear as if all the components draw as if the window was 1024x768 (and then go away if the window view is greater than 1024x768 again)

    Hope this makes sense. Probably something simple but I couldn't find a way to do this without it being too buggy.

    Thanks for your suggestions

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

    Default

    You could add a container inside your viewport with autoscroll.

    Scott.

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
  •