I think the Jan 16th build (or earlier) introduced a problem with Dynamicform.setColdWidths(Object ... objects); method.
Intro:
- We were caught by the FireFox 18 vs. SmartGWT issue and updated to Jan 16th SmartGWT 3.1p version. This upgrade fixed our ToolStrip twice-the-height issue, but the upgrade caused us to see this new issue.
Issue 1:
- We have a custom CanvasItem widget which shows a device/resource picker in a ListGrid table. The CanvasItem consists of a DynamicForm showing a TextItem and a ButtonItem.
- When showing the application in production, the TextItem no longer stretches to fill the available space in the DynamicForm cell.
- When showing the application in development mode, debugging in eclipse, the TextItem shows just fine like it used to before upgrading to SmartGWT 3.1p Jan 16 2013.
(Attached are two images showing the difference.)
I think I have narrowed it down to the following line of code:
The idea is that the button should be 25 pixels wide, and the rest of the form area should stretch to fill the space. This has worked fine for months.
I am not able to find a workaround for this and thus reaching out here.
Issue 2:
Similar to issue 1 issue was found and fixed on our end:
We had an issue regarding a Window which showed a TextAreaItem which filled the entire screen. After the upgrade on the 16th, we noticed that the TextAreaItem no longer filled the screen. It filled the height properly, but centered itself in the window, only showing about 160px wide. (see TextArea attachements).
We fixed this issue by commenting out one line of code in the following code snippet:
Once that line was commented out, the TextAreaItem filled the window again. Please note that this issue also showed up only in production. In eclipse debugging it was filling the window as it did before the Jan 16th upgrade.
I apologize for not including a complete standalone sample but I hope you have an example in the showcase you can test with. Thank you in advance for looking at this.
Intro:
- We were caught by the FireFox 18 vs. SmartGWT issue and updated to Jan 16th SmartGWT 3.1p version. This upgrade fixed our ToolStrip twice-the-height issue, but the upgrade caused us to see this new issue.
Issue 1:
- We have a custom CanvasItem widget which shows a device/resource picker in a ListGrid table. The CanvasItem consists of a DynamicForm showing a TextItem and a ButtonItem.
- When showing the application in production, the TextItem no longer stretches to fill the available space in the DynamicForm cell.
- When showing the application in development mode, debugging in eclipse, the TextItem shows just fine like it used to before upgrading to SmartGWT 3.1p Jan 16 2013.
(Attached are two images showing the difference.)
I think I have narrowed it down to the following line of code:
Code:
form.setColWidths(new Object[]{ new String("*"), new Integer(25)});
I am not able to find a workaround for this and thus reaching out here.
Issue 2:
Similar to issue 1 issue was found and fixed on our end:
We had an issue regarding a Window which showed a TextAreaItem which filled the entire screen. After the upgrade on the 16th, we noticed that the TextAreaItem no longer filled the screen. It filled the height properly, but centered itself in the window, only showing about 160px wide. (see TextArea attachements).
We fixed this issue by commenting out one line of code in the following code snippet:
Code:
TexAreaItem item = new TextAreaItem(); item.setWidth("*"); item.setHeight("*"); item.setAlign(Alignment.CENTER); item.setColSpan(1); item.setRowSpan(1); item.setShowTitle(false); DynamicForm form = new DynamicForm(); form.setNumCols(1); form.setPadding(0); form.setWidth(CCStringUtils.ASTERISK_STRING); // commented this line out to make the TextAreaItem stretch across the drop in form: //form.setColWidths("*"); form.setFields(item);
I apologize for not including a complete standalone sample but I hope you have an example in the showcase you can test with. Thank you in advance for looking at this.
Comment