View Full Version : Is Vertical Align on Top possible on Panel?

11 Nov 2010, 12:27 PM
I have a Panel, which has two columns(table layout).

First Column contain a GridPanel

Second Column Contains a FormPanel. I use hide/show some field inside the FormPanel based on user selection and there are possibility of increasing the height of FormPanel based on the user selection.

If the height of 2nd column increases, the Grid in 1st column goes center. I want to stick this Grid on top of 1st column.

Is it possible by any way?

var myPanel = new Ext.Panel({
frame: true,
fieldAlign: 'right',
name: 'myPanel',
id: 'myPanel',
bodyStyle: 'padding:5px',
buttonAlign: 'left',
autoWidth: true,
autoHeight: true,
labelWidth: 150,
items: [ {
layout: 'table',
items: [{
width: 200,
layout: 'form',
border: false,
items: [myGrid]
}, {
width: 750,
layout: 'form',
border: false,
labelWidth: 120,
items: [myFormPanel]