diff options
author | Mike Krüger <mkrueger@novell.com> | 2010-05-18 12:54:50 +0400 |
---|---|---|
committer | Mike Krüger <mkrueger@novell.com> | 2010-05-18 12:54:50 +0400 |
commit | 5956df1940c864b09d82897bd4f8302cd5bc2e9d (patch) | |
tree | 5a27c2641a6e28f3ffbfe5e5ac5f6e6bd0710b68 /main/src/core/MonoDevelop.Ide/MonoDevelop.Components | |
parent | 4f9e3e087d21fcff1ae80fc0f1ec866194eaf1e2 (diff) |
* MonoDevelop.Components/TooltipWindow.cs:
* MonoDevelop.Ide.CodeCompletion/CompletionListWindow.cs:
* MonoDevelop.Ide.CodeCompletion/ParameterInformationWindowManager.cs:
Improved multi monitor support.-
svn path=/trunk/monodevelop/; revision=157487
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Components')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Components/TooltipWindow.cs | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/TooltipWindow.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/TooltipWindow.cs index 1d1465d5f7..1024d8909a 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/TooltipWindow.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/TooltipWindow.cs @@ -113,20 +113,19 @@ namespace MonoDevelop.Components // LimitWidth (fittedWidth); // } + Gdk.Rectangle geometry = Screen.GetMonitorGeometry (Screen.GetMonitorAtWindow (GdkWindow)); if (nudgeHorizontal) { - int screenW = Screen.Width; - if (allocation.Width <= screenW && x + allocation.Width >= screenW - edgeGap) - x = (screenW - allocation.Width - edgeGap); - if (x <= 0) - x = 0; + if (allocation.Width <= geometry.Width && x + allocation.Width >= geometry.Width - edgeGap) + x = geometry.Left + (geometry.Width - allocation.Height - edgeGap); + if (x <= geometry.Left) + x = geometry.Left; } if (nudgeVertical) { - int screenH = Screen.Height; - if (allocation.Height <= screenH && y + allocation.Height >= screenH - edgeGap) - y = (screenH - allocation.Height - edgeGap); - if (y <= 0) - y = 0; + if (allocation.Height <= geometry.Height && y + allocation.Height >= geometry.Height - edgeGap) + y = geometry.Top + (geometry.Height - allocation.Height - edgeGap); + if (y <= geometry.Top) + y = geometry.Top; } if (y != oldY || x != oldX) |