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 263906 Details for
Bug 500703
[GTK3.20+] Combo with SWT.READ_ONLY is garbled upon re-size
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.
Snippet reproducing the issue
Bug500703_ComboGarbledResize.java (text/x-java), 1.10 KB, created by
Eric Williams
on 2016-09-01 14:00:59 EDT
(
hide
)
Description:
Snippet reproducing the issue
Filename:
MIME Type:
Creator:
Eric Williams
Created:
2016-09-01 14:00:59 EDT
Size:
1.10 KB
patch
obsolete
>package testsnippets; > >import org.eclipse.swt.SWT; >import org.eclipse.swt.layout.GridData; >import org.eclipse.swt.layout.GridLayout; >import org.eclipse.swt.widgets.Combo; >import org.eclipse.swt.widgets.Display; >import org.eclipse.swt.widgets.Label; >import org.eclipse.swt.widgets.Shell; > >public class Bug500703_ComboGarbledResize { > > public static void main(String[] args) { > Display display = new Display(); > Shell shell = new Shell(display); > shell.setLayout(new GridLayout(2, false)); > > final Label l = new Label(shell, SWT.None); > l.setText("Select item:"); > > final Combo combo = new Combo(shell, SWT.READ_ONLY | SWT.BORDER); >// A Combo without SWT.READ_ONLY works >// final Combo combo = new Combo(shell, SWT.BORDER); > > GridData gd = new GridData(SWT.FILL, SWT.CENTER, true, false); > combo.setLayoutData(gd); > String[] items = new String[] { "A", "B", "C 12345678901234567890123456789012345678901234567890" }; > combo.setItems(items); > combo.select(2); > > shell.pack(); > 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 500703
:
263905
| 263906