I updated my SmartGWT 4.1 library the most recent build. I discovered that autosizing for ButtonItem no longer works.
Here is the code that demonstrates this:
Ive tried various versions of the SmartGWT 4.1 libraries and have found that this bug was introduced with 4.1-d20131124.
ButtonItem autosize works with 4.1-d20131117.
The libraries for the dates 4.1-d20131118 through 4.1-d20131123 dont exist so I couldnt test these.
Ive attached the capture screenshot that shows the difference between 4.1-d20131117 (works correctly) and 4.1-d20131124 (works incorrectly).
Here is the code that demonstrates this:
Code:
DynamicForm form = new DynamicForm();
form.setNumCols(1);
form.setWidth("140");
ButtonItem button1 = new ButtonItem();
button1.setTitle("This is Button 1");
ButtonItem button2 = new ButtonItem();
button2.setTitle("Button 2");
form.setItems(button1, button2);
form.setCellBorder(1);
form.draw();ButtonItem autosize works with 4.1-d20131117.
The libraries for the dates 4.1-d20131118 through 4.1-d20131123 dont exist so I couldnt test these.
Ive attached the capture screenshot that shows the difference between 4.1-d20131117 (works correctly) and 4.1-d20131124 (works incorrectly).