| Summary: | SWT: Text in string form field jumps up and down | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Marcel Burkhard <mbk> | ||||
| Component: | Scout | Assignee: | Andreas Hoegger <Andreas.Hoegger> | ||||
| Status: | CLOSED WONTFIX | QA Contact: | |||||
| Severity: | trivial | ||||||
| Priority: | P3 | CC: | claudio.guglielmo, mvi, rolf.paulsen, zimmermann | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Marcel Burkhard
Created attachment 197569 [details]
Screen recording
You should see the problem in this 3 seconds long video.
Problem doesn't occur in windows xp (tested by matthias) Not search form (In reply to comment #3) > Not search form *specific Updated Bug Name problem doesn't occur on windows7 home premium 64bit Hi Marcel
This happens because the row height does not automatically scale according to the text height. This depends on the font and its size, on Windows XP it looks well, on Windows Vista not.
You can increase the rowheight manually which solves the problem. Just add following code into the plugin.xml of your swt plugin:
<extension
point="org.eclipse.scout.rt.ui.swt.lookAndFeel">
<properties scope="global">
<property name="formfield.activationButton.height" value="24"/>
<property name="formfield.activationButton.width" value="24"/>
<property name="logicalGridLayout.rowHeight" value="24"/>
<property name="processButton.height" value="24"/>
</properties>
</extension>
This increases the height of the row by 3 pixel.
Regards
Claudio
workaround implemented for Juno: when OS != WinXP the default height is set to 23. This is sufficient as long as the text scaling of Win7 is not increased above 100%. Unfortunately on some screen resolutions win7 sets a default text scaling of 125%. in this cases the text is still jumping. for affected users the solution explained in Comment 6 can be used. In the future a dynamic layout would be desirable which always uses the correct height. removed obsolete bugs due to new HTML UI. |