Results 1 to 4 of 4

Thread: Scroll is stuck to device screen size

  1. #1
    Sencha Premium Member
    Join Date
    Nov 2012
    Posts
    28
    Vote Rating
    0
      0  

    Default Scroll is stuck to device screen size

    I'm trying to create a panel that is composed of multiple panels, more panels that fit in the size of an iPad screen. I set the main panel to scrollable and the scrolling works, but it is stuck to the size of the viewport. For example if I have set the height of the main Panel to 2000, but my screen size is 1500, scroll is stuck to 1500. I can't view anything at the bottom of the page.
    I've tried setting the main view to a Card, Vbox, or Hbox layout, but they all behave the same.

    Anyone have any ideas?

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

    Default

    Sounds like you are having layout or overnesting issue. Can you give me a simple and locally runnable test case?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha Premium Member
    Join Date
    Nov 2012
    Posts
    28
    Vote Rating
    0
      0  

    Default Scroll is stuck to device screen size

    Below is the code I just created in Sencha Architect. I am definitely using nested panels in a lot of my views for the purpose of style, layout and compartmentalizing particular features.

    Code:
    Ext.define('MyApp.view.MyPanel', {    extend: 'Ext.Panel',
    
    
        config: {
            height: 2000,
            layout: {
                type: 'vbox'
            },
            scrollable: 'vertical',
            items: [
                {
                    xtype: 'panel',
                    flex: 1,
                    html: 'Text'
                },
                {
                    xtype: 'panel',
                    flex: 1,
                    html: 'Text'
                },
                {
                    xtype: 'panel',
                    flex: 1,
                    html: 'Text'
                }
            ]
        }
    
    
    });

  4. #4
    Sencha Premium Member
    Join Date
    Nov 2012
    Posts
    28
    Vote Rating
    0
      0  

    Default

    mitchellsimoens,

    Just wanted to check if what I provided helps.

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
  •