Hi,
I am trying to build a form with long hints for the fields. It appears that whilst the hint will stretch to the available width in Firefox 3, it will not in IE7. It wouldn't be the end of the world if I could fix the width of the hint, but I don't seem to be able to do that either in IE7. I've inspected the styles using the IE Developer Toolbar and seen that when I use TextItem's setHintStyle method, the appropriate style is being shown by the toolbar, however, the width part of my style definition does not appear to be applied.
The problems can be illustrated by modifying the Forms / Details Hints Showcase sample (http://www.smartclient.com/smartgwt/showcase/#form_details_hints). Including and removing the call to setHintStyle both produce output with narrow hints.
and adding the following to the bottom of public/Showcase.css:
Is this something that can be fixed in SmartGWT, or do I need to find a work-around?
Thanks,
Andrew
I am trying to build a form with long hints for the fields. It appears that whilst the hint will stretch to the available width in Firefox 3, it will not in IE7. It wouldn't be the end of the world if I could fix the width of the hint, but I don't seem to be able to do that either in IE7. I've inspected the styles using the IE Developer Toolbar and seen that when I use TextItem's setHintStyle method, the appropriate style is being shown by the toolbar, however, the width part of my style definition does not appear to be applied.
The problems can be illustrated by modifying the Forms / Details Hints Showcase sample (http://www.smartclient.com/smartgwt/showcase/#form_details_hints). Including and removing the call to setHintStyle both produce output with narrow hints.
Code:
public Canvas getViewPanel() { final Layout layout = new Layout(); layout.setWidth(500); layout.setBorder("2px solid blue"); final DynamicForm form = new DynamicForm(); final TextItem date = new TextItem(); date.setTitle("Date"); date.setWidth(70); date.setHint("MM/YYYY The month and year in which you moved to your present address"); date.setHintStyle("hintStyle"); form.setFields(date); layout.addChild(form); return layout; }
Code:
.hintStyle { width: 300px; border: 1px dashed black; }
Thanks,
Andrew
Comment