Results 1 to 4 of 4

Thread: How can I change the height of the Numberfield?

  1. #1

    Default Answered: How can I change the height of the Numberfield?

    I want to have a numberfield to accommodate a 30px font size.

    Code:
              xtype: 'numberfield',
              height: 40, //this is not working 
              width: 100,
              emptyText: '0.0',
              hideTrigger: true
    I also tried using:
    Code:
              style: {
                height: '200%'
              },
    in replacement of 'height' config but still no luck. Any workaround guys? Help is really appreciated.

  2. Try this :
    PHP Code:
    fieldStyle'height: 30px;'

  3. #2

    Default

    Resize Numberfield.PNG I am currently getting this.

  4. #3
    Sencha User
    Join Date
    Jul 2012
    Location
    France
    Posts
    159
    Answers
    2

    Default

    Try this :
    PHP Code:
    fieldStyle'height: 30px;'

  5. #4

    Default

    Thanks 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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •