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

Bug 364127

Summary: Tooltips don't respect monitor bounds.
Product: [Tools] GEF Reporter: bart.smets
Component: GEF-Legacy Draw2dAssignee: gef-inbox <gef-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: bart.smets, Benjamin.Brandl
Version: 3.4   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description bart.smets CLA 2011-11-18 04:44:58 EST
Build Identifier: M20080911-1700

We have an editor built using the GEF framework and recently we ran into an issue when dealing with multiple display monitors. Take the following setup: 2 monitors next to eachother, with our application running maximized on the left monitor. When hovering a figure close to the right edge, a tooltip pops up but if it is long enough, it will extend onto the second display, making it hard to read the message.
The tooltip's location is calculated using the ToolTipHelper class which doesn't seem to take multiple monitors with display extension into account. The debugger showed that the clientArea was in fact 3840x1080, which corresponds to both monitors.

It seems impossible to use a custom ToolTipHelper without hacking too much into the Draw2D framework.


Reproducible: Always