Announcement

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

    CheckboxItem cols

    The CheckboxItem always display a tiny empty cell in front of it, even with setColSpan(1).
    Any idea how to get rid of it?

    #2
    See the Form Layout overview.

    Comment


      #3
      Yes, I did, I kind of use already several different layouts.
      But still I cant really have a correct visualization in this particular case. I would like to display the Items in the same row, without the empty cells in front of them. I tried several combinations of NumCols and ColSpan.

      Code:
      public void onModuleLoad() {
      		SC.showConsole();
      
      		VLayout layout = new VLayout();
      
      		CheckboxItem checkBoxItem = new CheckboxItem("images", "a");
      		checkBoxItem.setColSpan(1);
      		CheckboxItem checkBoxItem2 = new CheckboxItem("images2", "b");
      		checkBoxItem2.setColSpan(1);
      		checkBoxItem2.setStartRow(false);
      
      		DynamicForm formFilters = new DynamicForm();
      		formFilters.setNumCols(2);
      		formFilters.setCellBorder(1);
      		formFilters.setItems(checkBoxItem, checkBoxItem2);
      
      		layout.addMember(formFilters);
      		layout.draw();
      	}

      Comment


        #4
        Read harder :) showTitle:true (the default) introduces an extra cell, also, if you used the suggested log categories you would have been able to figure this out even if you missed this on first reading.

        Comment


          #5
          Jesus, I was actually even aware of it..
          Thanks and sorry for wasting time.

          Comment

          Working...
          X