Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Krüger <mkrueger@novell.com>2010-05-18 12:54:50 +0400
committerMike Krüger <mkrueger@novell.com>2010-05-18 12:54:50 +0400
commit5956df1940c864b09d82897bd4f8302cd5bc2e9d (patch)
tree5a27c2641a6e28f3ffbfe5e5ac5f6e6bd0710b68 /main/src/core/MonoDevelop.Ide/MonoDevelop.Components
parent4f9e3e087d21fcff1ae80fc0f1ec866194eaf1e2 (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.cs19
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)