[1.0] Fieldset padding not working

  1. #1

    [1.0] Fieldset padding not working

    I'm using Ext.NET v1.0.

    I have this code:

    <ext:FieldSet Border="false" Layout="Form" runat="server" ID="SchoolFieldSet" Padding="0">
    	<Items>
                   ... some items...
    	</Items>
    </ext:FieldSet>
    In the generated ExtJS code, the padding element style is never populated. I believe this is a bug. It seems the "Padding" attribute on the ext:FieldSet is ignored.
  2. #2
    Hi,

    0 is default value for the Padding therefore it is not rendered. If you change it to another value then Padding will be rendered
  3. #3
    Quote Originally Posted by vladimir View Post
    Hi,

    0 is default value for the Padding therefore it is not rendered. If you change it to another value then Padding will be rendered
    In my project, if I omit the Padding="0", then this part of the CSS becomes applicable (notice the padding):

    .x-fieldset {
        border:1px solid;
        display:block;
        margin-bottom:10px;
        padding:10px;
    }
    It can be found at line 1300 of the CSS resource.

    Maybe I have an outdated version of Ext.NET v1?
  4. #4
    The .Padding property does not function the same with the <ext:FieldSet>

    I'll investigate.

    As a temp work-around, you can set the StyleSpec property.

    Example

    <ext:FieldSet runat="server" Border="false" Layout="form" StyleSpec="padding:0px;">
    Geoffrey McGill
    Founder
  5. #5
    I have the same problem, but using StyleSpecs steel working bad. Finally I solved it using PaddingSummary.

    <ext:FieldSet runat="server" id="pnlTiempo" Title="Time Interchange" Layout="FormLayout" PaddingSummary="5px 0px 0px 0px" >
    Hope it help others.

Similar Threads

  1. Pie Chart Padding
    By cwolcott in forum 2.x Help
    Replies: 3
    Last Post: Jan 17, 2012, 5:30 AM
  2. [CLOSED] Button padding
    By SymSure in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Oct 03, 2011, 4:17 PM
  3. Gridpanel - Reduce Row Padding?
    By Tbaseflug in forum 1.x Help
    Replies: 1
    Last Post: Dec 21, 2010, 9:57 AM
  4. Fieldset padding inside a ColumnLayout
    By Coltonis in forum 1.x Help
    Replies: 0
    Last Post: Jul 09, 2010, 1:13 AM
  5. Data Grid padding
    By jeyganesh in forum 1.x Help
    Replies: 0
    Last Post: Apr 29, 2010, 1:36 AM

Posting Permissions