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

Bug 352080

Summary: SWT: Multiline-Table looks a little bit poor
Product: z_Archived Reporter: Claudio Guglielmo <claudio.guglielmo>
Component: ScoutAssignee: Andreas Hoegger <Andreas.Hoegger>
Status: CLOSED FIXED QA Contact:
Severity: trivial    
Priority: P3 CC: Andreas.Hoegger, zimmermann
Version: unspecifiedFlags: zimmermann: indigo+
zimmermann: juno+
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
screenshot
none
Patch to solve the bug zimmermann: iplog+

Description Claudio Guglielmo CLA 2011-07-14 09:14:34 EDT
Build Identifier: 3.7.0

If the property MultilineText is set to true the table changes its look. 

1. The margins are not right (too much on the top of the row, too little on the bottom).
2. There is a line on the bottom of a row. Why?
3. If the column is too small to show all the text there should be three dots to indicate that there is more text. This is not the case
4. 

Reproducible: Always

Steps to Reproduce:
1. Create a table and set MultilineText to true
2. You could also change the size of the font to see the margin problems better. Add this to ScoutFormToolkit:

  @Override
  public void adapt(Control control, boolean trackFocus, boolean trackKeyboard) {
    Font font = new Font(PlatformUI.getWorkbench().getDisplay(), "Tahoma", 10, 0);
    control.setFont(font);
    super.adapt(control, trackFocus, trackKeyboard);
  }

3. Start SWT-UI
Comment 1 Claudio Guglielmo CLA 2011-07-14 09:15:32 EDT
Created attachment 199657 [details]
screenshot
Comment 2 Claudio Guglielmo CLA 2011-07-22 05:26:39 EDT
Created attachment 200163 [details]
Patch to solve the bug

The attached patch solves the issues with the margin and the line and reactivates the multiline feature.

Issue 3 (missing three dots) is not fixed but this is not necessary anymore. It looks fine now with the bigger margin.
Comment 3 Andreas Hoegger CLA 2011-07-22 08:06:04 EDT
Applied Patch on trunk and Indigo RC1.
Thank you Claudio
Comment 4 Matthias Zimmermann CLA 2011-10-10 12:56:03 EDT
shipped with scout 3.7.1
Comment 5 Matthias Zimmermann CLA 2011-10-11 11:41:49 EDT
removed iplog flag from ticket and added iplog flag to attachment