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:	50
Size:	1.9 KB
ID:	265533

    #2
    This title-wrapping issue has been fixed for builds dated June 29 and later

    Comment


      #3
      Great stuff, thanks!

      (BTW, contrary to popular belief: while, sure, the best song on the only album Rock Steady Crew ever released, "Ready for Battle", might be the famous "(Hey You) the Rock Steady Crew", there are several other great songs on there. "Uprock", "Digital Boogie", "She's Fresh" and actually most songs, are well worth a listen. Run-DMC's best song is, of course, Rock Box).

      Comment

      Working...
      X