Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    RadioGroupItem vertical layout

    Hi,

    I've come across a bug using RadioGroupItem in a DynamicForm with TextAreaItem that has auto height feature enabled by setHeight("*").

    On default radio group setting it all works fine. Text area stretched to cover all available space but when I setVertical(false) it loses 37px leaving big gap below the form.
    Strangely text area is also bigger than default size but not big enough.

    I've tried several field combination but no other field affect this case.
    I'm using SmartGWT 2.4
    Best regards

    #2
    Can you post the screenshot & code here?

    Comment


      #3
      Ok. Here is the standalone code:
      Code:
      DynamicForm form = new DynamicForm();
      form.setWidth100();
      form.setHeight(300);
      form.setBorder("1px solid red");
      
      TextAreaItem fieldDescription = new TextAreaItem("description");
      fieldDescription.setWidth("*");
      fieldDescription.setHeight("*");
      
      RadioGroupItem fieldViewType = new RadioGroupItem("view_type");
      fieldViewType.setRedrawOnChange(true);
      fieldViewType.setDefaultValue("user");
      fieldViewType.setWidth(100);
      fieldViewType.setVertical(false);
      fieldViewType.setValueMap("value1", "value2", "value3");
      
      form.setFields(fieldDescription, fieldViewType);
      Making screens I've found another problem with requested form height.

      First screen with code above and correct height (300px with border).

      Second screen with commented setVertical() and height 312px with border.

      Hope this helps.
      Best regards
      Attached Files

      Comment

      Working...
      X