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 287366 Details for
Bug 576766
[macOS 11][arm64] Table.getClientBounds() returns too large value
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Snippet to reproduce
TableColumnsClientAreaTest.java (text/plain), 1003 bytes, created by
Thomas Singer
on 2021-10-20 09:46:09 EDT
(
hide
)
Description:
Snippet to reproduce
Filename:
MIME Type:
Creator:
Thomas Singer
Created:
2021-10-20 09:46:09 EDT
Size:
1003 bytes
patch
obsolete
>import org.eclipse.swt.*; >import org.eclipse.swt.graphics.*; >import org.eclipse.swt.layout.*; >import org.eclipse.swt.widgets.*; > >/** > * @author Thomas Singer > */ >public class TableColumnsClientAreaTest { > > public static void main(String[] args) { > final Display display = new Display(); > > final Shell shell = new Shell(display); > shell.setLayout(new FillLayout()); > > final Table table = new Table(shell, SWT.MULTI); > table.setHeaderVisible(true); > final TableColumn column = new TableColumn(table, SWT.LEFT); > column.setText("Column"); > > new TableItem(table, SWT.NONE).setText("row 0"); > > table.addListener(SWT.Resize, event -> { > final Rectangle clientArea = table.getClientArea(); > System.out.println("clientArea = " + clientArea); > column.setWidth(clientArea.width); > }); > > shell.setSize(400, 300); > 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 576766
: 287366 |
287367
|
287368
|
287369