Results 1 to 6 of 6

Thread: Formatting Checkbox Height

  1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    28
    Answers
    1
    Vote Rating
    1
      0  

    Default Answered: Formatting Checkbox Height

    Hi,

    How do reduce the amount of whitespace above and below the checkbox text so the whole checkbox is not as high?

    When I use height: 10, the checkbox height is reduced, however the text and tickbox are then obscured. I've tried everything I can find in the documentation, which probably means I haven't found the right thing.

    checkbox.png

    Thanks in advance.

    New Boy

  2. For the benefit of others, I solved this by changing the values of BOTH

    $form-field-height
    and
    $form-spacing

  3. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,326
    Answers
    3884
    Vote Rating
    1297
      0  

    Default

    You should inspect the DOM and look at the elements to see which ones you can change with CSS to affect this.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  4. #3
    Sencha User
    Join Date
    Mar 2012
    Posts
    28
    Answers
    1
    Vote Rating
    1
      1  

    Default Solved

    For the benefit of others, I solved this by changing the values of BOTH

    $form-field-height
    and
    $form-spacing

  5. #4
    Sencha User
    Join Date
    Mar 2012
    Posts
    28
    Answers
    1
    Vote Rating
    1
      0  

    Default

    I have subsequently found that through the (incorrect) use of CSS it is possible to create a checkbox with unusual behaviour, its response depends upon where you click on it.

    By clicking on one half of the checkbox, the status indicator changes and the event handler fires as expected.

    By clicking on half of the checkbox, the status indicator changes but the event handler does not fire!

    This may be a bug? Should I report it as such?

  6. #5
    Sencha User
    Join Date
    Mar 2012
    Posts
    28
    Answers
    1
    Vote Rating
    1
      0  

    Default

    This has been reported as a bug and accepted as TOUCH-2850

  7. #6
    Sencha User =NR='s Avatar
    Join Date
    Mar 2013
    Location
    Singapore
    Posts
    115
    Answers
    2
    Vote Rating
    -1
      1  

    Default

    Quote Originally Posted by mitchellsimoens View Post
    You should inspect the DOM and look at the elements to see which ones you can change with CSS to affect this.
    this never help mitchell,
    we both know that sencha ui component are deeply nested within tag and there is a lot of css rule related with one ui component (and that css also will be related to other ui component)

Tags for this Thread

Posting Permissions

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