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

Bug 321121

Summary: [Gtk] items not shown in popup menu in multi-monitor setup
Product: [Eclipse Project] Platform Reporter: Jörg Thönnes <jtk499>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, ericwill
Version: 3.6   
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:
Attachments:
Description Flags
Half-filled list box if window below is empty
none
Empty task trim widget selection box if window is maximised none

Description Jörg Thönnes CLA 2010-07-28 09:11:04 EDT
Just switched from Kubuntu 8.04 to Ubuntu (GNOME) 10.04.

Now the Task Trim widget (located at the lower left corner in my setup) behaves strange:


h1. Steps to reproduce

* Window maximised / Task Trim in lower left corner
** Click on button with arrow to open task list
** Task list opens empty, but with correct size
** Move to vertical arrow at the bottom of the list
** Task entries slide in upwards until list is filled

* Window not maximised with space left below / Task Trim in lower left corner
** Click on button with arrow to open task list
** Task list opens downwards with as many entries as space allows
** Move to vertical arrow at the bottom of the list
** Task entries slide in upwards until list is filled


-- Configuration Details --
Product: Eclipse 1.3.0.20100617-0521 (org.eclipse.epp.package.jee.product)
Installed Features:
 org.eclipse.mylyn_feature 3.4.0.v20100608-0100-e3x
Comment 1 Jörg Thönnes CLA 2010-07-28 09:13:12 EDT
Created attachment 175401 [details]
Half-filled list box if window below is empty

This is for the second case, when there is space below so that the list can extend downwards.
Comment 2 Jörg Thönnes CLA 2010-07-28 09:19:49 EDT
Created attachment 175402 [details]
Empty task trim widget selection box if window is maximised

Here is how it looks like if the window is maximized.
Move the mouse to the downwards arrow and the tasks slide in until the box is filled.
Comment 3 Jörg Thönnes CLA 2010-07-28 09:20:45 EDT
This did not happen with Kubuntu 8.04.

Is this an issue with the Task Trim widget, ie wrong API usage or a general SWT issue?
Comment 4 Jörg Thönnes CLA 2010-07-28 11:30:44 EDT
Some more points:
 - This also happens for e.g. the "Show View" icon placed in the bottom line.
   - Therefore, this should be also a Platform / SWT issue --> please move.
 - In addition, this happens for dual-monitor setup:
   - I have 2 monitors stacked one above another.
   - I have one desktop covering both displays, i.e. I can move windows from lower to upper display.
   - Eclipse runs in the upper display (this is the large, external monitor / lower one is the laptop).
   - Obviously, the SWT code does not honour the boundary to the lower display.

Please rename to ticket to reflect the real issue, I do not know the exact SWT termini:

e.g. "Selection boxes at bottom should honour desktops consisting of stacked displays"

Many thanks, Jörg
Comment 5 Jörg Thönnes CLA 2010-07-28 11:32:42 EDT
Daniel, I guess this is also for you: Please check my last comment and update Product, Component and summary accordingly.
Thanks, Jörg
Comment 6 Dani Megert CLA 2010-07-28 11:38:34 EDT
> - This also happens for e.g. the "Show View" icon placed in the bottom line.
There is no such icon in the Eclipse SDK. Can you reproduce this problem on a fresh Eclipse SDK build? With what steps?
Comment 7 Steffen Pingel CLA 2010-07-28 13:31:24 EDT
I can confirm that the menu for adding a fast view is not displayed correctly if I use a multi-monitor layout where Eclipse is running on screen above another screen. I'm using Ubuntu 10.04 with the default Gtk theme.
Comment 8 Jörg Thönnes CLA 2010-07-28 14:07:23 EDT
(In reply to comment #7)
> I can confirm that the menu for adding a fast view is not displayed correctly
> if I use a multi-monitor layout where Eclipse is running on screen above
> another screen. I'm using Ubuntu 10.04 with the default Gtk theme.

Thanks, Steffen. This saves me the time to reproduce with a standard SDK.
Comment 9 Jörg Thönnes CLA 2010-07-30 04:17:38 EDT
(In reply to comment #6)
> > - This also happens for e.g. the "Show View" icon placed in the bottom line.
> There is no such icon in the Eclipse SDK. Can you reproduce this problem on a
> fresh Eclipse SDK build? With what steps?

I meant the icon "Show View as fast view" icon, which can appear at the bottom line were also the fast view icons would appear.
Clicking on this icon should display a pop-up menu with a list which is also not filled initially.

This is also quite easily to be reproduced using the "Search" view:

* Place the view on the bottom of the screen
* Size it to have a small height
* Do some searches to fill the history
* Then select "Show last searches"
* If the number of searches does not allow the menu to extend to the bottom border of the screen, then the menu has to grow larger and the described effect happens.

Were you able to reproduce this?
Comment 10 Eric Williams CLA 2017-01-09 10:27:50 EST
I can't reproduce this bug. Also I believe this issue was fixed in bug 500445. I'm going to close this bug now, if it happens again please file a new bug against 4.7.