PDA

View Full Version : no scroll in grid panel



mx03
9 Aug 2012, 12:22 AM
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 (http://jsfiddle.net/bCHrW/2/embedded/result/)ope someone can help :)

vietits
9 Aug 2012, 1:35 AM
Try to set flex config for Panel.panel1 to force it occupy the remaining space of center region.


Panel.panel1 = Ext.create('Ext.Panel',{
flex: 1,
layout:'fit',
viewConfig: {forceFit: true},
items:[Grid.list3]
});

mx03
9 Aug 2012, 3:17 AM
thx, this solves the problem with the space, but the scrolling problem still exist. :s

vietits
9 Aug 2012, 4:58 AM
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.