Community
Participate
Working Groups
Build Identifier: M20100211-1343 Using CDT when I hover over say a function call a view of the declaration of the function opens up in a tooltip. With my dual monitor set this tooltip is split between the monitors making it harder to read. My setup: A laptop with an external monitor connected to it. The laptop is on the left and monitor to the right of it. I open eclipse in the right monitor. The problem occures when I hover over a function near the left edge of of the right monitor. This problem seems to only happen with CDT and with this code view port kind of tooltip. Other tooltips work fine. Reproducible: Always
Okay this bug is a little stranger than I thought, but I might have a small reproducer: 1. Create a C project 2. Create a C file 3. Add this code to the file: void foo () { //loooooooooooooooooooooooooooooooooooooooooooooooooong line } 4. Move foo down the page by inserting new lines before it 5. When foo is near the bottom of the viewable page hover over foo and the tool tip will be split between monitors. If foo is higher in the page the tool tip is displayed correctly
CDT does not select the position of the hover popup. This is done by the text hover framework. Therefore I assume other Eclipse editors will show a similar behavior. Could you try e.g. with a Java Editor?
You know I thought I tried before but this time I tried harder :) I can reproduce with the java editor: 1. Create a java file with public class Hello{ public static void main(String[] argsssssssssssssssssssssssssssssssssssssssss) { } } 2. Move the class to the edge of the page same as before. 3. Hover over main
Thanks, I'll move this bug to Platform then.
Could you please attach a screenshot of both screens that shows the tooltip in the bad position? Bug 321290 has been fixed in 3.6 for a similar problem (but there, the problem was that the caret was out of sight).
Created attachment 183933 [details] tooltip over two screens
Created attachment 183934 [details] tooltip on one screens
Hmm... Taking the screenshot provided some insight: As you can see from the screen shots my two screens are different sizes. I thought that might have something to do with it so I used the gnome monitor preferences applet (gnome-display-properties) to move my small screen so that it is aligned with the bottom of my big screen and once I did that the tooltip was position properly. I included the gnome monitor preferences dialogue in the screenshots so you can see the alignment of the monitors.
Thanks for the screenshots. Unfortunately, I couldn't reproduce this under Windows 7 with 3.5.2 nor with HEAD (same screen resolutions and same logical screen locations). Entry point for debugging: org.eclipse.jface.text.AbstractInformationControlManager.internalShowInformationControl(Rectangle, Object) I checked our code again, but I don't see any way for this to fail. I suspect a bug somewhere in SWT around the Monitor APIs. I don't have a Linux box with dual screens, so I currently can't debug it on GTK.
Okay. Thanks for looking into this and being so responsive. If you ever get a change to try it on a Linux box that would be great.
*** Bug 352541 has been marked as a duplicate of this bug. ***
I can reporoduce it on Fedora 20/21 with Eclipse Luna 4.4.1 (as well as with Mars) Gtk2 & Gtk3. It is something I could look into once bug 428852 bug 439884 are fixed. I added this to my (long) todo list :-)
Leo, Is this bug still valid?
This bug doesn't occur anymore actually. Thanks for ping.
Gtk3.20 w/ Neo anyway.