I have a CheckboxItem in the 2nd column of a DynamicForm with TitleOrientation.LEFT. I have ComboBoxItems in the same column above. The labels align around the colon but the Checkbox appears a couple of pixels to the right. It seems to use the left edge of the focus grid (slightly bigger than checkbox) of the checkbox for alignment...
the screenshot shows the issue...
Code:
tableItem = new ComboBoxItem("tableName"); tableItem.setTitle("Table Name"); ComboBoxItem userGroupItem = new ComboBoxItem("userGroup"); userGroupItem.setTitle("User Group"); CheckboxItem toggleScheduler = new CheckboxItem(); // will initially return null if not set to false toggleScheduler.setValue(false); // otherwise focus area will fill container toggleScheduler.setWidth(1); toggleScheduler.setTitleOrientation(TitleOrientation.LEFT); toggleScheduler.setTitle("Schedule"); // SmartGWT bug means TitleOrientation.LEFT does not work // fixed in SmartGwt subversion code 24 may 2009 // http://forums.smartclient.com/showthread.php?t=4766 toggleScheduler.setAttribute("labelAsTitle", true);
Comment