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

Bug 238706

Summary: [Table] mouse listener prevents column headers to be resized by user
Product: [RT] RAP Reporter: Dmitry Pryadkin <drpadawan>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: drpadawan, stefan.roeck
Version: 1.1   
Target Milestone: 1.2 M3   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 247122    
Attachments:
Description Flags
Patch for RAP 1.1.2 none

Description Dmitry Pryadkin CLA 2008-06-27 02:08:12 EDT
If I add a mouse listener (Table#addMouseListener) then there is some weird behavior like I can't resize the column headers.
Comment 1 Ivan Furnadjiev CLA 2008-07-01 05:54:05 EDT
I've reproduced it with "RAP Control Demo" -> Table part.
Comment 2 Rüdiger Herrmann CLA 2008-10-15 05:44:33 EDT
The client-side mouse-listeners that control colunm dragging and resizing interfere with the mouse-listeners that are attached to the table by server-sode (Table#addMouseListeners)

The fix is to call stopPropagation() and preventDefault() when mouse events are 'consumed' by the code that handles column resizing and dragging.

Changes are in CVS HEAD > 2008-10-15
Comment 3 Ivan Furnadjiev CLA 2009-05-04 08:06:43 EDT
*** Bug 274816 has been marked as a duplicate of this bug. ***
Comment 4 Stefan Röck CLA 2009-05-04 10:08:49 EDT
Created attachment 134237 [details]
Patch for RAP 1.1.2

This patch contains the code modifications for RAP 1.1.2. Maybe, someone finds this useful.