| Summary: | [Widgets] packed TableColumns too narrow on Ubuntu | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Grant Gayed <grant_gayed> | ||||||||
| Component: | SWT | Assignee: | Platform-SWT-Inbox <platform-swt-inbox> | ||||||||
| Status: | CLOSED DUPLICATE | QA Contact: | |||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | CC: | eclipse, ericwill, pinnamur, qforce, Silenio_Quarti | ||||||||
| Version: | 3.6 | Keywords: | triaged | ||||||||
| Target Milestone: | --- | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Linux-GTK | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Grant Gayed
Created attachment 158229 [details]
screenshot
- using the latest swt, happens on Ubuntu, works fine on RHEL4
- run the snippet below and note that the right edge of the item texts in the first two columns are clipped, screenshot is attached
- perhaps it's because column separator lines are being lightly drawn?
public static void main(String[] args) {
Display display = new Display();
Shell shell = new Shell(display);
shell.setLayout(new FillLayout());
final Table table = new Table(shell, SWT.NONE);
table.setHeaderVisible(true);
TableColumn column1 = new TableColumn(table, SWT.NONE);
TableColumn column2 = new TableColumn(table, SWT.NONE);
TableColumn column3 = new TableColumn(table, SWT.NONE);
for (int i = 0; i < 10; i++) {
TableItem item = new TableItem(table, SWT.NONE);
item.setText(new String[] {"item " + i, "hi", "there"});
}
column1.pack();
column2.pack();
column3.pack();
shell.setSize(300, 300);
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch()) display.sleep();
}
display.dispose();
}
Created attachment 158231 [details]
Fedora 12 screenshot
I could reproduce the problem on Ubuntu. However, the columns are packed correctly when the lines are drawn. This problems seems to be slightly worse when the table is created with SWT.CHECK style. Created attachment 205488 [details]
SWT/JFace 3.7.1 on Ubuntu 11.10
(In reply to Thomas Singer from comment #5) > Created attachment 205488 [details] > SWT/JFace 3.7.1 on Ubuntu 11.10 Ping, is this still reproducible? The columns are now (tried SWT 4.756 on Ubuntu 16.04.2) large enough to not visually cut off some text. But double-clicking the table-header separators make them slightly larger, though. *** This bug has been marked as a duplicate of bug 531882 *** |