Announcement

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

    TitleOrientation.TOP causes wrapping

    13.0 latest. Consider code below. Even though i've set wrapTitle to false, the title wraps on top of the checkboxitem. It only behaves as expected with titles to the left or right.

    Code:
    public void onModuleLoad() {
    
    VLayout hLayout = new VLayout();
    
    DynamicForm form = new DynamicForm();
    form.setTitleOrientation(TitleOrientation.TOP);
    form.setCellBorder(1);
    
    TextItem runDmc = new TextItem();
    runDmc.setTitle("Run-DMC");
    
    CheckboxItem rocksteadycrew = new CheckboxItem();
    rocksteadycrew.setTitle("Rock Steady Crew");
    
    rocksteadycrew.setWrapTitle(false);//only makes a difference if titleorientation is left or right
    rocksteadycrew.setLabelAsTitle(true);
    
    form.setItems(runDmc, rocksteadycrew);
    
    hLayout.addMember(form);
    hLayout.draw();
    }
    screenshot:
    Click image for larger version

Name:	Screen Shot 2021-05-28 at 08.25.57.png
Views:	19
Size:	1.9 KB
ID:	265533
Working...
X