FieldCls style not correctly applied

  1. #1

    FieldCls style not correctly applied

    EXT.NET version 2.1.1.14877

    Example:

    <%@ Page Language="C#" Title="Test" Theme="" StylesheetTheme="" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <html>
    <head runat="server">
    <style type="text/css">
    .offset
    {
           margin-left:30px;
    }
    </style>
    </head>
    
    <body>
         <form id="Form1" runat="server">
            
            <ext:ResourceManager runat="server" />
    
            <ext:ComboBox ID="combo" runat="server" FieldLabel="combo" width="100" LabelWidth="50" FieldCls="offset">
                <Items>
                    <ext:ListItem Text="Category 1" Value="c1" />
                    <ext:ListItem Text="Category 2" Value="c2" />
                    <ext:ListItem Text="Category 3" Value="c3" />
                </Items>
            </ext:ComboBox>
                       
        </form>
    </body>
    </html>
    Description:
    FieldCls="offset" used in components consisting of more than one element (like combobox with input field and arrow icon or datefield with calendar icon)
    applies the style only on the first element, see firebug output:

    Input field:
    <tr>
    <td id="combo-inputCell" class="x-form-trigger-input-cell" style="width: 100%;">
    <div id="ext-gen1031" class="x-hide-display x-form-data-hidden" role="presentation"/>
    <input id="combo-inputEl" class="offset x-form-text" type="text" style="width: 100%; -moz-user-select: text;" name="combo" autocomplete="off" aria-invalid="false" data-errorqtip=""/>
    </td>
    Arrow icon (offset missing in class definition):
    <td id="ext-gen1030" class="x-trigger-cell" valign="top" style="width: 17px;">
    <div id="ext-gen1029" class="x-trigger-index-0 x-form-trigger x-form-arrow-trigger x-form-trigger-last x-unselectable" special="1" role="button" style="-moz-user-select: -moz-none;"/>
    </td>
    </tr>

    The result is overlapping or non visible parts of the component.
    Last edited by Tomas Voracek; Feb 21, 2013 at 3:47 PM.
  2. #2

Similar Threads

  1. [CLOSED] Style changed after upgrade to latest version
    By jchau in forum 2.x Legacy Premium Help
    Replies: 7
    Last Post: Feb 18, 2013, 7:51 PM
  2. [CLOSED] Disabled Style applied incorrectly
    By softmachine2011 in forum 2.x Legacy Premium Help
    Replies: 11
    Last Post: Sep 21, 2012, 10:54 AM
  3. [CLOSED] V2.1 FieldCls Change
    By Aurelio in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 31, 2012, 2:05 PM
  4. Replies: 3
    Last Post: May 20, 2011, 8:55 PM
  5. TabPanel CSS not being applied
    By red4life in forum 1.x Help
    Replies: 2
    Last Post: Oct 13, 2009, 3:35 PM

Tags for this Thread

Posting Permissions