PDA

View Full Version : How can I change the height of the Numberfield?



AesonErryl
4 Oct 2012, 5:15 AM
I want to have a numberfield to accommodate a 30px font size.



xtype: 'numberfield',
height: 40, //this is not working
width: 100,
emptyText: '0.0',
hideTrigger: true


I also tried using:

style: {
height: '200%'
}, in replacement of 'height' config but still no luck. Any workaround guys? Help is really appreciated.

AesonErryl
4 Oct 2012, 5:18 AM
39138 I am currently getting this. :(

Elfayer
4 Oct 2012, 6:22 AM
Try this :

fieldStyle: 'height: 30px;',

AesonErryl
9 Oct 2012, 3:30 AM
Thanks Elfayer (http://www.sencha.com/forum/member.php?464280-Elfayer)! I've tried ur suggestion and indeed, I have made my numberfield big. But the problem is, my emptyText, "0.0", are cut on its top and buttom(the same as the image). I guess I have to adjust the margins. Plus, when typing in real values, it won't align with the emptyText. I guess I have to adjust the alignement. => SO MUCH WORK!

Anyways, I have changed my approach so to avoid making a numberfield big.

And since you indeed answered my question, you got it! :)