Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 352080 - SWT: Multiline-Table looks a little bit poor
Summary: SWT: Multiline-Table looks a little bit poor
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Scout (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 trivial (vote)
Target Milestone: ---   Edit
Assignee: Andreas Hoegger CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-14 09:14 EDT by Claudio Guglielmo CLA
Modified: 2021-08-19 11:27 EDT (History)
2 users (show)

See Also:
zimmermann: indigo+
zimmermann: juno+


Attachments
screenshot (24.62 KB, image/png)
2011-07-14 09:15 EDT, Claudio Guglielmo CLA
no flags Details
Patch to solve the bug (7.24 KB, patch)
2011-07-22 05:26 EDT, Claudio Guglielmo CLA
zimmermann: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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