Results 1 to 2 of 2

Thread: Global scroll for dataview

  1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    6
    Vote Rating
    0
      0  

    Default Global scroll for dataview

    Hi, I am writing a view which has a vertical layout and has a custom template view at the top, and a scrolable dataview at the bottom with autopaging plugin.

    PHP Code:
    config: {
      
    layout'vbox',
      
    scrollabletrue,
      
    items: [
        {
          
    xtype'mycustomview' // it is a container that has a complex layout
        
    },
        {
          
    xtype'dataview',
          
    store'SomeStore',
          
    itemTpl'my template'
          
    scrollable: {
            
    direction'vertical',
            
    directionLock'true'
          
    },
        }
      ]

    So as you can see I have scrollable twice, which works bad on small screens, because when you scroll down to the dataview, the upper view is not visible, and it is really hard to scroll to the top(you have to drag at the edge of the screen to get to the top). Is there a way to place two views into one scrollable area?

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

    Default

    if the parent of the dataview is going to be scrollable, I would actually turn scroll off on the dataview. and remove scrollable on the dataview.

    Or since you are using vbox layout on the parent, I would not allow the parent to be scrollable and let the items be scrollable.
    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

Posting Permissions

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