Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 348686

Summary: SWT: Text in string form field jumps up and down
Product: z_Archived Reporter: Marcel Burkhard <mbk>
Component: ScoutAssignee: 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 Flags
Screen recording none

Description Marcel Burkhard CLA 2011-06-08 04:39:58 EDT
Build Identifier: I20110519-1138

When I enter text into a field of a search form, the text jumps up and down with every letter entered.
I encountered the same behavior in older scout versions aswell.

Reproducible: Always

Steps to Reproduce:
1.Create a search form with a String Field
2.Launch SWT Application
3.Enter Text to the field
Comment 1 Marcel Burkhard CLA 2011-06-08 04:41:55 EDT
Created attachment 197569 [details]
Screen recording

You should see the problem in this 3 seconds long video.
Comment 2 Marcel Burkhard CLA 2011-06-08 05:16:28 EDT
Problem doesn't occur in windows xp (tested by matthias)
Comment 3 Marcel Burkhard CLA 2011-06-09 02:53:59 EDT
Not search form
Comment 4 Marcel Burkhard CLA 2011-06-09 02:54:47 EDT
(In reply to comment #3)
> Not search form
*specific

Updated Bug Name
Comment 5 Matthias Zimmermann CLA 2011-06-09 08:15:35 EDT
problem doesn't occur on windows7 home premium 64bit
Comment 6 Claudio Guglielmo CLA 2011-08-25 11:58:51 EDT
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
Comment 7 Matthias Villiger CLA 2012-04-24 09:59:28 EDT
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.
Comment 8 Andreas Hoegger CLA 2015-04-14 09:04:34 EDT
removed obsolete bugs due to new HTML UI.