-
5 Oct 2010 7:37 AM #1
Vbox problem with vertical scrolls
Vbox problem with vertical scrolls
Hello,
I have a panel with vbox layout, when i resize my window the vertical scroll doesn't appear.
Here is my code:
PHP Code:function getContentPanel() {
var contentPanel = new Ext.Panel( {
region : 'center',
layout: {
type: 'vbox',
align: 'center'
},
autoScroll: true,
items : [ new Ext.Panel( {
layout:'column',
autoScroll: true,
width: 1102,
heigth: 1102,
title : '<center><fmt:message key="UserAddDeleteManage" /></center>',
items : [getNewUserForm(),getJsonGrid()]
})
]
});
return contentPanel;
}
I use vbox this because I need to center the content panel. Any sugestion would be really great.PHP Code:function setLayout() {
viewport = new Ext.Viewport( {
layout : 'border',
items : [ getHeaderPanel(), getContentPanel() ,getFooterPanel()]
});
}
Thanks.
--
Mehmet
-
6 Oct 2010 2:17 AM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 40
VBox and HBox layout don't support scrolling.
You will have to reconfigure your layout so the container inside the box layout does the scrolling.
-
6 Oct 2010 2:18 AM #3
-
6 Oct 2010 2:27 AM #4Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 40
Try:
Disclaimer: Completely untested code!Code:function getContentPanel() { var contentPanel = new Ext.Panel({ region : 'center', layout: { type: 'vbox', align: 'center' }, items : [{ xtype: 'container', width: 1102, flex: 1, autoScroll: true, layout: 'anchor', items: { anchor: '0', layout:'column', heigth: 1102, title : '<center><fmt:message key="UserAddDeleteManage" /></center>', items : [getNewUserForm(),getJsonGrid()] } }] }); return contentPanel; }
-
6 Oct 2010 2:30 AM #5
Copy paste worked thanks alot Condor.
--
Mehmet
Similar Threads
-
Problem in TreeTable Vertical Scrollbar
By livinglegends in forum Ext GWT: DiscussionReplies: 4Last Post: 22 Jun 2009, 8:34 PM -
No vertical scrollbar with vbox layout
By mjdslob in forum Ext 3.x: Help & DiscussionReplies: 9Last Post: 19 Jun 2009, 10:37 PM -
Problem in TreeTable Vertical Scrollbar
By livinglegends in forum Ext GWT: DiscussionReplies: 0Last Post: 15 Jun 2009, 5:37 AM -
Grids and Vertical/Horizonal Scrolls
By jabbey in forum Community DiscussionReplies: 1Last Post: 17 Dec 2008, 2:00 AM -
Slight problem using TabPanel and scrolls
By santiago.alvarez in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 20 Dec 2007, 11:15 AM


Reply With Quote