Results 1 to 4 of 4

Thread: no scroll in grid panel

  1. #1
    Sencha User
    Join Date
    Sep 2011
    Posts
    4

    Default Answered: no scroll in grid panel

    Hi,

    i have some trouble with a non scrolling grid (grid3), i already use autoScroll:true but, doesnt work.

    the structure:
    • viewpoint
      • panel
        • panel
          • table
          • grid2
      • grid3
    the test:
    http://jsfiddle.net/bCHrW/2/

    h
    ope someone can help

  2. Try to set flex config for Panel.panel1 to force it occupy the remaining space of center region.
    Code:
    Panel.panel1 = Ext.create('Ext.Panel',{
        flex: 1,
        layout:'fit',
        viewConfig: {forceFit: true},
        items:[Grid.list3]
    });

  3. #2
    Sencha User
    Join Date
    Jan 2012
    Posts
    1,376
    Answers
    347

    Default

    Try to set flex config for Panel.panel1 to force it occupy the remaining space of center region.
    Code:
    Panel.panel1 = Ext.create('Ext.Panel',{
        flex: 1,
        layout:'fit',
        viewConfig: {forceFit: true},
        items:[Grid.list3]
    });

  4. #3
    Sencha User
    Join Date
    Sep 2011
    Posts
    4

    Default

    thx, this solves the problem with the space, but the scrolling problem still exist.

  5. #4
    Sencha User
    Join Date
    Jan 2012
    Posts
    1,376
    Answers
    347

    Default

    I add flex: 1 to the config of Panel.panel1 and vertical scrollbar appear on the right side of Grid.list3. You can check it on jsFiddle: http://jsfiddle.net/bCHrW/8/. BTW, I am using Chrome 20.

Posting Permissions

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