Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 317238 - [JFace] ToolTip does not show if it extends past edge of screen
Summary: [JFace] ToolTip does not show if it extends past edge of screen
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.6   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-17 16:12 EDT by Mike Reid CLA
Modified: 2021-11-05 01:41 EDT (History)
3 users (show)

See Also:


Attachments
Test plug-in that demonstrate the issue (15.40 KB, application/octet-stream)
2010-06-17 16:17 EDT, Mike Reid CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Reid CLA 2010-06-17 16:12:42 EDT
This occurs with the latest org.eclipse.jface plugin from HEAD.

On Linux-GTK, if an org.eclipse.jface.window.ToolTip window extends beyond the edge of the screen, it is not shown at all. It seems that by commenting out the following lines from ToolTip.java the problem is solved:

372:	Point cursorLocation = tip.getDisplay().getCursorLocation();
373:
374:	if (cursorLocation.y == location.y && location.x < cursorLocation.x
375:			&& location.x + size.x > cursorLocation.x) {
376:		location.y -= 2;
377:	}
Comment 1 Mike Reid CLA 2010-06-17 16:17:40 EDT
Created attachment 172156 [details]
Test plug-in that demonstrate the issue

Attached a test project which illustrates the issue.

1. Import > General > Existing projects in workspace
2. Browse to the archived testcase
3. Launch the plug-in project
4. Open the "Sample View" view
5. Hover in the right-side of the sample view and see the tooltip is displayed as expected
6. Next, position to the workbench / view so that right extremity of Sample View is near the right extremity of the screen
7. Hover the mouse cursor near the right extremity of the Sample View. 

The tool tip is not displayed. If you then hover near the left edge again so that the tooltip fits entirely on the screen, it is displayed.
Comment 2 Mike Reid CLA 2010-11-08 15:27:51 EST
Any chance this will be looked at during the 3.6.2 cycle?
Comment 3 Kathy Chan CLA 2010-11-25 16:36:37 EST
Do you have any outlook of when this bug will be addressed in?
Comment 4 Susan McCourt CLA 2010-12-15 14:39:30 EST
Given the problem, I don't see us looking at this for 3.6.2, since it is platform dependent and also the user can see the tooltip in most cases.

It would be helpful to know how wide the "no tooltip" area is when the bug is seen.  Are we talking about a few pixels or more than that?  (Screenshot would help).
Comment 5 Eclipse Webmaster CLA 2019-09-06 16:15:22 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.
Comment 6 Eclipse Genie CLA 2021-11-05 01:41:21 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.