View Full Version : Problem with Setting Textfield height when label is on top
DSordillo
19 Jul 2012, 11:14 AM
I'm getting an issue where if I set the height on a textfield item and set the label to 'top' the label appears on top of the text input completely blocking the input area. It works if I don't set the height though, but the height is a user defined attribute so I need to be able to set it.
Any ideas if this is a known bug or a way to fix it?
Thanks
sword-it
20 Jul 2012, 3:32 AM
Hi!
Your condition is working fine on my side.May be you have a layout problem.
paste your code here for further understandings
see this:-
Ext.create('Ext.form.Panel', {
fullscreen: true,
items: [
{
xtype: 'fieldset',
title: 'Enter your name',
items: [
{
xtype: 'textfield',
label: 'First Name',
name: 'firstName',
labelAlign:'top',
height:200
}
]
}
]
});
Output:-
37371
DSordillo
20 Jul 2012, 5:15 AM
ok it turns out that putting '45px' doesn't work for me, but just putting '45' does. So the 'px' part was causing it to mess up.
Thanks for the reply
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.