quizzl
28 Nov 2011, 5:15 AM
I am currently having trouble to make a nested panel with vbox layout scrollable. The vbox layout panel can have a dynamic number of grids in it with a dynamic number of records.
Here is my pseudo code
viewport {
layout : 'border',
autoHeight: true,
autoWidth: true,
items : [{
region : 'center',
layout : 'fit', //tried others but whatever other layout manager I use the region gets minimized even if I try to set fixed height
items : verticalLayoutPanel
},
{
region: 'west',
layout: 'fit',
width: 250,
items: treePan
}]
}
treePan {
autoScroll : true //works for vertical scrollbar but doesn't set horizonal scrollbar
}
verticalLayoutPanel {
autoScroll :true,
layout {
type : 'vbox',
align : 'stretch'
}
}
1. Now the vertical scroll bar for the treegrid shows up. However even calling showHorizonalScroller does not show the horizontal scroller.
2. The vertical layout panel in the center does not show a scroller no matter what I try.
Here is my pseudo code
viewport {
layout : 'border',
autoHeight: true,
autoWidth: true,
items : [{
region : 'center',
layout : 'fit', //tried others but whatever other layout manager I use the region gets minimized even if I try to set fixed height
items : verticalLayoutPanel
},
{
region: 'west',
layout: 'fit',
width: 250,
items: treePan
}]
}
treePan {
autoScroll : true //works for vertical scrollbar but doesn't set horizonal scrollbar
}
verticalLayoutPanel {
autoScroll :true,
layout {
type : 'vbox',
align : 'stretch'
}
}
1. Now the vertical scroll bar for the treegrid shows up. However even calling showHorizonalScroller does not show the horizontal scroller.
2. The vertical layout panel in the center does not show a scroller no matter what I try.