Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 267395 Details for
Bug 514047
SWT Table reports wrong header height on GTK3
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
Small Java code to reproduce problem
TestTablePreferredSize.java (text/x-java), 1.11 KB, created by
ChristianR
on 2017-03-22 05:09:39 EDT
(
hide
)
Description:
Small Java code to reproduce problem
Filename:
MIME Type:
Creator:
ChristianR
Created:
2017-03-22 05:09:39 EDT
Size:
1.11 KB
patch
obsolete
>import org.eclipse.swt.SWT; >import org.eclipse.swt.layout.FillLayout; >import org.eclipse.swt.widgets.Display; >import org.eclipse.swt.widgets.Shell; >import org.eclipse.swt.widgets.Table; >import org.eclipse.swt.widgets.TableColumn; >import org.eclipse.swt.widgets.TableItem; > > > >public class TestTablePreferredSize { > public static void main(String[] args) { > final Display display = new Display(); > final Shell shell = new Shell(display); > shell.setLayout(new FillLayout()); > > > > > //create an SWT table with a single item > > Table table = new Table(shell, SWT.H_SCROLL| SWT.V_SCROLL); > table.setHeaderVisible(true); > > TableColumn column = new TableColumn(table, SWT.NONE); > column.setText("Column1"); > column.setWidth(100); > > TableItem item = new TableItem(table, SWT.NONE); > item.setText(new String[] {"Text"}); > > > // resize to preferred size > shell.pack(); > > //output the 0 header height on GTK3 > System.err.println("header height = " + table.getHeaderHeight()); > > > > > shell.open(); > while (!shell.isDisposed()) { > if (!display.readAndDispatch()) > display.sleep(); > } > display.dispose(); > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 514047
: 267395