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 287514 Details for
Bug 575696
[Mac aarch64] List/Table/Tree has larger items and border on aarch64 than x86_64
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Snippet to show item height change when List font is set
ListTest.java (text/plain), 1.01 KB, created by
Phil Beauvoir
on 2021-11-15 07:51:27 EST
(
hide
)
Description:
Snippet to show item height change when List font is set
Filename:
MIME Type:
Creator:
Phil Beauvoir
Created:
2021-11-15 07:51:27 EST
Size:
1.01 KB
patch
obsolete
>import org.eclipse.swt.SWT; >import org.eclipse.swt.layout.GridData; >import org.eclipse.swt.layout.GridLayout; >import org.eclipse.swt.widgets.Display; >import org.eclipse.swt.widgets.List; >import org.eclipse.swt.widgets.Shell; > >public class ListTest { > > public static void main(String[] args) { > Display display = new Display(); > Shell shell = new Shell(display); > shell.setLayout(new GridLayout()); > shell.setText("List Test"); > shell.setSize(155, 250); > > List list = new List(shell, SWT.V_SCROLL); > list.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); > for(int i = 0; i < 12; i++) { > list.add("Item " + i); > } > > // Uncomment this line to see item height shrink > //list.setFont(list.getFont()); > > 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 575696
:
287043
|
287044
|
287045
|
287046
| 287514