-
How to set align of a panel
How to set align of a panel
Hello,
How can I set the align of a panel, that is in a border layout viewport, to center?
I have tried vbox layout with align center but when I resize the window vertical scroll bar is missing.
Thanks.
--
Mehmet
-
Sencha User
your center panel must have fix width or not ?
-
It doesn't matter for me, I have fixed width atm.
Here is my code:
function setLayout() {
viewport = new Ext.Viewport( {
id: 'viewPort',
layout : 'border',
autoScroll: true,
items : [ getHeaderPanel(), getContentPanel() ,getFooterPanel()]
});
}
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,
title : '<center><fmt:message key="UserAddDeleteManage" /></center>',
items : [getNewUserForm(),getJsonGrid()]
})
]
});
return contentPanel;
}
-
Sencha - Community Support Team
In the examples/ux directory there is also a CenterLayout.
-
I think this layout not working in borderLayout.
Any other suggestions would be great.
Similar Threads
-
By warbaby in forum Ext 3.x: Bugs
Replies: 1
Last Post: 20 Nov 2009, 2:22 AM
-
By cprabha in forum Ext 2.x: Help & Discussion
Replies: 1
Last Post: 30 Mar 2009, 2:29 AM
-
By redlz2500 in forum Ext 2.x: Help & Discussion
Replies: 1
Last Post: 29 Jan 2008, 5:06 AM
-
By Supersuper in forum Ext 1.x: Help & Discussion
Replies: 1
Last Post: 10 Jul 2007, 9:01 AM
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us