Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: xtype:'fieldset' with border = false but inside padding still showing

  1. #1
    Sencha User xjpmauricio's Avatar
    Join Date
    Jul 2009
    Location
    Portugal, Setbal
    Posts
    88

    Exclamation xtype:'fieldset' with border = false but inside padding still showing

    Hi, i have a problem with a xtype:'fieldset'; I've removed the border (border:false) but the
    inside padding (or margin!?) is still showing;
    How can i fix this?

    Attached Images Attached Images

  2. #2
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,245

    Default

    Why are you using a fieldset when you are not using any of the fieldset features (title, checkbox, border etc.)?

    In your case a plain xtype:'container' would do just as well!

  3. #3
    Sencha User xjpmauricio's Avatar
    Join Date
    Jul 2009
    Location
    Portugal, Setbal
    Posts
    88

    Default

    Yes, i'm using a fieldset because of collapse & expand methods, etc. The fields show, depending on options selected.

    It's got to be a fieldset. :-(

  4. #4
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

    Override the CSS padding rules of the body then.

  5. #5
    Sencha User xjpmauricio's Avatar
    Join Date
    Jul 2009
    Location
    Portugal, Setbal
    Posts
    88

    Default

    Quote Originally Posted by Animal View Post
    Override the CSS padding rules of the body then.
    i did this but it didn't work:

    {
    xtype:
    'fieldset',
    bodyStyle:'padding:0px!important;',

  6. #6
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

    !important is invalid for inline style.

  7. #7
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

    But its style you need to set. For some reason they style the outer element, not the body (I think this is a bug)

  8. #8
    Sencha User xjpmauricio's Avatar
    Join Date
    Jul 2009
    Location
    Portugal, Setbal
    Posts
    88

    Default

    It worked like this:

    style: 'padding:0px!important;margin:0px!important;',
    border:
    false,

    Thanks!!!

  9. #9
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

    This works:

    style: 'padding:0;margin:0'

    Zero size requires no units.

  10. #10
    Sencha User xjpmauricio's Avatar
    Join Date
    Jul 2009
    Location
    Portugal, Setbal
    Posts
    88

    Default

    Quote Originally Posted by Animal View Post
    This works:

    style: 'padding:0;margin:0'

    Zero size requires no units.
    Final Version:
    style:
    'padding:0;',
    border:
    false,

Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 4
    Last Post: 21 Jan 2010, 6:29 PM
  2. Replies: 2
    Last Post: 9 Aug 2008, 10:46 PM
  3. Replies: 9
    Last Post: 29 Jun 2008, 7:39 AM

Posting Permissions

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