diff options
author | Jeffrey Stedfast <jeff@xamarin.com> | 2011-10-18 21:11:01 +0400 |
---|---|---|
committer | Jeffrey Stedfast <jeff@xamarin.com> | 2011-10-18 21:11:01 +0400 |
commit | 8c36576b0de018ee5365aa9a35322aeb85d7c93a (patch) | |
tree | f5c020e995a321b898b9023ca9da42e340882225 /main | |
parent | ecf1e514653b7261aef0722d858db1ae3f591b74 (diff) |
[Ide] Make sure to offset the tooltip by edgeGap pixels on the left edge too
Diffstat (limited to 'main')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Components/TooltipWindow.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/TooltipWindow.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/TooltipWindow.cs index 0ecb8a95a3..b23013df8e 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/TooltipWindow.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/TooltipWindow.cs @@ -125,15 +125,15 @@ namespace MonoDevelop.Components if (nudgeHorizontal) { 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 (x <= geometry.Left + edgeGap) + x = geometry.Left + edgeGap; } if (nudgeVertical) { 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 <= geometry.Top + edgeGap) + y = geometry.Top + edgeGap; } if (y != oldY || x != oldX) |