PDA

View Full Version : Hbox align bottom



gijukud6
1 Oct 2012, 9:40 AM
Hi,

I experience some problems with the align config of an Hbox container.
'top' and 'middle' work, but 'bottom' does not.
In the following example, the textfield won't stick to the bottom.
What did I do wrong?

Is there a way to specify the vertical and horizontal alignment not in the container, but in the child-element itself?

Thanks for help!



Ext.application({
name: 'website',
launch: function() {

Ext.create('Ext.panel.Panel',
{
xtype: 'panel',
itemId: 'window1',
title: 'Panel',
width: 300,
height: 200,
layout: {
type: 'hbox',
align: 'bottom',
pack: 'center'
},
items: [

{
xtype: 'textfield',
itemId: 'inputtext'
}

],
renderTo: Ext.getBody()
}

)
}
});

scottmartin
1 Oct 2012, 10:28 AM
This has been corrected in 4.1.2

Scott.

gijukud6
1 Oct 2012, 11:01 AM
Thanks Scott.
Since 4.2.1 is not available for free yet and im interested in an answer:

Is there a way to specify the vertical and horizontal alignment not in the hbox-container, but in the child-element itself?