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

Bug 388717

Summary: [Combo] Unable to select an item in combobox-list
Product: [RT] RAP Reporter: Peter Weise <peter.weise>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2 CC: ivan, peter.weise, tbuschto
Version: 1.4   
Target Milestone: 2.0 M3   
Hardware: PC   
OS: Windows 7   
Whiteboard: sr152
Attachments:
Description Flags
Popup-Dialog with combobox none

Description Peter Weise CLA 2012-09-04 03:39:06 EDT
Created attachment 220672 [details]
Popup-Dialog with combobox

If you have an popup-dialog and in this a combobox und you pulldown the itemlist, than you have a problem to select an item, when this item lies ahead of the borderline of the popup-dialog. In the screenshot is it illustrated.
When you click the mouse and hold down the button, then the cursor changes to double-arrow(arrow down and up).
Comment 1 Tim Buschtoens CLA 2012-09-04 06:54:11 EDT
Reproducable with controls demo on RAP 2.0M1 with any browser. It looks like the combo captures all mouse events if the list is down, then propagates them to it's parent.
Comment 2 Tim Buschtoens CLA 2012-11-05 11:41:35 EST
Hm, i'm no longer able to reproduce this in any version. Can someone? 

I tried various browser and different kinds of shells also, seems to work fine all the time. Any hints?
Comment 3 Ivan Furnadjiev CLA 2012-11-05 11:48:21 EST
Steps to reproduce:
1. Start Workbench Demo
2. Open "Preferences" dialog
3. Resize the dialog to make the height smaller -> opened Combo list overlap the dialog border.
4. Try to select the item with mouse, which is on the top of the dialog border
Comment 4 Tim Buschtoens CLA 2012-11-05 11:53:59 EST
Okay, i misunderstood "ahead". The cursor needs to be (exactly) "on top" of the border line, then it won't work. Thanks ivan.
Comment 5 Tim Buschtoens CLA 2012-11-06 05:31:13 EST
Fixed with commit 277a5a5103e0679d24c37b57da0679e22eb03674.

Combo.js#_redispatch now checks if the target is contained within the list widget, not if list is the parent.
Comment 6 Peter Weise CLA 2012-11-06 07:27:18 EST
Is it possible to merge the fix in version 1.5?
We need this version because 2.0 is not allowed to use now.
Comment 7 Ivan Furnadjiev CLA 2012-11-06 07:43:25 EST
+1 I think that the fix is safe to be backported to 1.5.2.
Comment 8 Ralf Sternberg CLA 2013-01-14 10:53:44 EST
+1
Comment 9 Ivan Furnadjiev CLA 2013-01-21 04:30:33 EST
Backported to 1.5-maintenance branch with commit b1db437e2a411fbecaa715a37d0d11fd7145f289.