Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 50257 - [content assist] Javadoc popup spreads over multiple monitors
Summary: [content assist] Javadoc popup spreads over multiple monitors
Status: RESOLVED DUPLICATE of bug 135381
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 minor with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 134202 (view as bug list)
Depends on:
Blocks: 45095
  Show dependency tree
 
Reported: 2004-01-20 04:50 EST by Thorbjørn Ravn Andersen CLA
Modified: 2006-05-31 09:32 EDT (History)
6 users (show)

See Also:


Attachments
screenshot of tooltip spread over two monitors (195.55 KB, image/png)
2004-01-20 04:51 EST, Thorbjørn Ravn Andersen CLA
no flags Details
Screen shot of popup being cut off when on 2nd monitor (24.43 KB, image/png)
2005-10-12 13:03 EDT, Brian Larson CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thorbjørn Ravn Andersen CLA 2004-01-20 04:50:05 EST
I have eclipse running on a second monitor as our application "sits" on the
first monitor.   Windows XP treats the two monitors as one desktop.

If I resize the code completion popup and the corresponding javadoc is somewhat
large, it hops to the left of the popup window, and does not respect the
physical border between the two monitors. 

Sample screenshot attached.
Comment 1 Thorbjørn Ravn Andersen CLA 2004-01-20 04:51:37 EST
Created attachment 7485 [details]
screenshot of tooltip spread over two monitors

Mozilla is full screen on the first monitor, and Eclipse is full screen on the
second monitor
Comment 2 Chris McLaren CLA 2004-02-06 12:02:02 EST
multimonitor issue
Comment 3 Stefan Xenos CLA 2004-02-06 14:13:58 EST
This is related to bug 41295, but I suspect the cause is different.
Comment 4 Douglas Pollock CLA 2004-11-01 14:50:43 EST
Should this be considered as part of Bug 72374? 
 
Stefan: this probably either belongs with [Dialogs] or with SWT.  Moving to 
Billy to decide. 
Comment 5 Eddie Galvez CLA 2005-06-13 16:28:12 EDT
I was just browsing around bugs to do with popups and multimonitor stuff... 
Thomas, do you really think this is a problem? I look at your screenshot, and 
I try it on my own dual monitor setup, and I actually like that it spans and 
crosses to the other monitor -- thats what we have another monitor for, right?
Comment 6 Olivier Jaquemet CLA 2005-06-13 17:49:03 EDT
If I can give my opinion, it is indeed why we have dual monitor setup, but it is
impossible to read a text like that.
The text is really spread over two monitors, and they are usually separated by
the plastic case and space between monitors, thus making impossible to read that
kind of popup in an easy way.
If I voted for this bug it is because it really annoys me to have this behaviour
when it occurs, i usually find myself scrolling my window to be sure the popup
open in the center of the current monitor.
Comment 7 Stefan Xenos CLA 2005-06-13 19:55:37 EDT
Re: comment 5

It is always a bug if text spans multiple monitors unless the user explicitly
resized something there.
Comment 8 luke sleeman CLA 2005-06-14 21:07:44 EDT
Spanning 2 monitors is definately a bug.  If the monitors are different
resolutions then the text is unreadable.  I have a large 19 inch monitor used
for my code editing, and a small monitor I use for the console, and search.  The
different sizes and resolutions make it impossible to read any dialog spanning
the two
Comment 9 Brian Larson CLA 2005-09-15 08:41:45 EDT
There is a similar problem with the popup for quick diff.  The popup is 
sometime shown on the wrong monitor or is shown to the left instead of to the 
right.

I have my monitors arranged above each other (1280x1024 on top, 1024x768 on 
bottom).  I have my Java perspective arranged with the Package Explorer on the 
left with the outline below the it and the editor to the right.

With Eclipse maximized on the 2nd monitor (top), I put my mouse over the quick 
diff in the margin, it displays the popup to the left instead of to the right 
of the margin.  The result is that it can only show a small portion (width of 
the tree).  This does not happen if Eclipse is on the primary monitor (bottom).

I did not create a new bug as this seems like the same problem.  If I should 
create a separate but, please let me know.
Comment 10 Susan McCourt CLA 2005-10-12 12:29:28 EDT
Reassigning to platform text.  Although a possible solution is a generic popup 
(bug #72374), it will be up to platform text to make a fix.  

The goal for these kinds of multi monitor bugs is that all dialogs/popups make 
use of the Window.constrainShellBounds logic that constrains a dialog to a 
single monitor.  Then debates about whether this is always desirable can 
happen at the JFace level.
Comment 11 Brian Larson CLA 2005-10-12 13:03:10 EDT
Created attachment 28194 [details]
Screen shot of popup being cut off when on 2nd monitor

Here is a related example where a problem popup is cut off because it is shown
to the left instead of the right of the error indicator in the editor margin. 
When the window is maximized, the entire popup is cut off.  In this example, my
multiple monitors are arranged side by side as follows:
----- _____
| 2 | | 1 |
----- -----
Note that the 2nd monitor (2) is to the left and uses a larger resolution than
the primary monitor (1).
Eclipse is on the 2nd monitor.

This does not happen if Eclipse is on the primary (1) monitor or if the 2nd
monitor is arranged to the right or below the primary monitor.	It does happen
if it is above the primary.

I'm using Sun's 1.5.0_5 JRE run run Eclipse.  Win XP SP2.  Mobility Radeon 9000
video (ATI 6.14.10.6458 - 6/10/2004 driver version) on a Dell Latitude D600
laptop.
Comment 12 Dani Megert CLA 2006-03-31 01:55:29 EST
*** Bug 134202 has been marked as a duplicate of this bug. ***
Comment 13 Jeramyn Feucht CLA 2006-03-31 10:59:34 EST
The problem noted in bug 134202 where the code complete is cut off by javadoc info is much more critical since it prevents the use of code complete on a secondary monitor.  See the first attachment on that bug for a screenshot.  The way it currently functions prevents users from using code complete on a second monitor because none of the options can bee seen and the method name doesn't show up in the javadoc popup.  I think this is more than a minor gui problem.
Comment 14 Dani Megert CLA 2006-03-31 16:59:38 EST
Martin, you're using 2 monitors as well, can you comment on this?
Comment 15 Sean Montgomery CLA 2006-04-02 21:14:17 EDT
3.2M6 update re: Brian Larson's comments.
3.2M6 on OS X 10.4.5 still shows the Quick Diff error Brian mentions in comment 9.  Brian's comment 11 sounds like bug 45095, the behavior of which has changed - see comments 22-24.
Comment 16 Brian Larson CLA 2006-04-03 08:50:24 EDT
(In reply to comment #15)
> Brian's comment 11 sounds like bug 45095, the behavior of which has changed
> - see comments 22-24.
Ageed.  Thanks.

FYI:  To resolve most of my problems, I switched my larger external monitor to be my primary and I use my built-in laptop monitor as my 2nd monitor.
Comment 17 Emmanuel Castro CLA 2006-04-04 04:39:15 EDT
(In reply to comment #16)
Note that you should test the problem putting the secondary monitor to the left or above the principal monitor. May be that what you plan to do.
|---|---|    |---|
| 2 | 1 |    | 2 |
|---|---| or |---|
             | 1 |
             |---|

It makes the secondary monitor having NEGATIVE coordinate, which is often overlooked by developper.
Comment 18 Dani Megert CLA 2006-04-05 10:03:38 EDT
Fix for this is to migrate to the PopupDialog (see bug 72374).
Comment 19 Ed Burnette CLA 2006-04-24 12:37:13 EDT
I recently upgraded to a multi-monitor setup and ran into this bug. It's pretty annoying because I'd like to keep Eclipse in the middle monitor but its popups (hover help and code assist) keep wrapping over to the right monitor (making them hard to read).

IMHO Eclipse should not create any windows that span physical monitors, unless the user dragged and made them that way on purpose. Couldn't this be handled at some lower SWT or JFace level instead of making all the upper level code change to use PopupDialog?
Comment 20 Tom Hofmann CLA 2006-05-31 05:07:44 EDT
Marking as dup of the newer bug 135381 as it also covers the main proposal popup (not just the additional info).

*** This bug has been marked as a duplicate of 135381 ***
Comment 21 Ed Burnette CLA 2006-05-31 09:32:05 EDT
Hmm, shouldn't the cc's have been automatically moved over when you marked this duplicate? They weren't, so move yourself if you're still interested.