Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 510540

Summary: Drop Down & Number Menu Items Do Not Show Contents
Product: [Eclipse Project] Platform Reporter: Calvin Moore <c1moore>
Component: SWTAssignee: Xi Yan <xixiyan>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: akurtakov, ericwill, loskutov, xixiyan
Version: 4.6Keywords: triaged
Target Milestone: 4.9 M2   
Hardware: PC   
OS: Linux   
See Also: https://git.eclipse.org/r/125543
https://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=1a1abf02ef00454028e2dd25c5242ae4b8cc162b
Whiteboard:
Attachments:
Description Flags
Debug Configuration Menu with Hidden Number Input Elements
none
Debug Configuration (good) none

Description Calvin Moore CLA 2017-01-16 21:26:26 EST
Created attachment 266316 [details]
Debug Configuration Menu with Hidden Number Input Elements

Some menu items are not wide enough to show their value.  Attached is an image from the Debug Configuration menu.  The last row of the form on the current tab has 2 number input elements neither of which are showing the contents/value of the element.  I have noticed this on other pages that contain number input elements.  Also, I have noticed the text for checkboxes sometimes covers the checkbox itself in this same window.  The checkboxes still appear to be clickable, though.

By the way, I am using Ubuntu 16.04, Eclipse 4.6.2, and Oracle Java version 1.8.0u91.
Comment 1 Andrey Loskutov CLA 2017-01-17 02:49:01 EST
Which GTK+ theme are you using?
Comment 2 Calvin Moore CLA 2017-01-18 19:47:36 EST
Using `pkg-config --modversion gtk+-2.0` shows I am using version 2.24.30.  Using `dpkg -l libgtk* | grep -e '^i' | grep -e 'libgtk-*[0-9]'` prints the following:

ii  libgtk-3-0:amd64             3.18.9-1ubuntu3.1         amd64        GTK+ graphical user interface library
ii  libgtk-3-bin                 3.18.9-1ubuntu3.1         amd64        programs for the GTK+ graphical user interface library
ii  libgtk-3-common              3.18.9-1ubuntu3.1         all          common files for the GTK+ graphical user interface library
ii  libgtk2.0-0:amd64            2.24.30-1ubuntu1          amd64        GTK+ graphical user interface library
ii  libgtk2.0-0:i386             2.24.30-1ubuntu1          i386         GTK+ graphical user interface library
ii  libgtk2.0-bin                2.24.30-1ubuntu1          amd64        programs for the GTK+ graphical user interface library
ii  libgtk2.0-cil                2.12.10-6                 amd64        CLI binding for the GTK+ toolkit 2.12
ii  libgtk2.0-common             2.24.30-1ubuntu1          all          common files for the GTK+ graphical user interface library
ii  libgtk2.0-dev                2.24.30-1ubuntu1          amd64        development files for the GTK+ library
Comment 3 Alexander Kurtakov CLA 2017-01-19 09:12:33 EST
Which plugin is that? It would be interesting to try it myself. Or ideally you can provide swt only snippet for testing/debugging purposes.
Comment 4 Calvin Moore CLA 2017-01-22 12:28:54 EST
The plugin is Eclipse Jetty (https://marketplace.eclipse.org/content/eclipse-jetty#group-details).
Comment 5 Eric Williams CLA 2018-06-15 15:41:50 EDT
Does this happen on GTK3.22?
Comment 6 Eric Williams CLA 2018-06-29 15:13:40 EDT
(In reply to Eric Williams from comment #5)
> Does this happen on GTK3.22?

I can reproduce the bug on 4.8 M7 with GTK3.22. Xi, please investigate.
Comment 7 Eclipse Genie CLA 2018-07-04 11:18:00 EDT
New Gerrit change created: https://git.eclipse.org/r/125543
Comment 8 Xi Yan CLA 2018-07-04 12:11:44 EDT
Created attachment 274819 [details]
Debug Configuration (good)

The overlap between checkbox and spinner can be fixed by setting the GridData for the checkbox as SWT.DEFAULT. This seems like a bug with the Jetty plugin.
Comment 10 Eric Williams CLA 2018-07-04 13:20:42 EDT
(In reply to Eclipse Genie from comment #9)
> Gerrit change https://git.eclipse.org/r/125543 was merged to [master].
> Commit:
> http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/
> ?id=1a1abf02ef00454028e2dd25c5242ae4b8cc162b

In master now, thanks for the patch Xi.