Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User bigmountainben's Avatar
    Join Date
    Apr 2009
    Posts
    46
    Vote Rating
    0
    bigmountainben is on a distinguished road

      0  

    Default [CLOSED] setIntStyleAttribute on a TextField only affect the text box, not the label

    [CLOSED] setIntStyleAttribute on a TextField only affect the text box, not the label


    name.setEmptyText("A short description of the task");
    name.setFieldLabel("Some Label");
    // we have to do it at this level because otherwise gxt styles take over
    name.setIntStyleAttribute("margin-top", 10);

    The margin-top will only apply to the TextBox, not the entire Field entry (Field Label+Text Box).

    This is in the build from last night.

    Ben

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    This is not a bug. The label is bound to the layout and not to the component.

    The margin-top will only apply to the TextBox, not the entire Field entry (Field Label+Text Box).
    And that is correct. As you set the margin on the component, the textfield.

  3. #3
    Ext User bigmountainben's Avatar
    Join Date
    Apr 2009
    Posts
    46
    Vote Rating
    0
    bigmountainben is on a distinguished road

      0  

    Default


    Ok thanks.

Thread Participants: 1