~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Ide/MonoDevelop.Components/TooltipWindow.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
using MonoDevelop.Ide;
32
32
using Gtk;
33
33
using Gdk;
 
34
using Mono.TextEditor.PopupWindow;
34
35
 
35
36
namespace MonoDevelop.Components
36
37
{
123
124
                                
124
125
                                Gdk.Rectangle geometry = DesktopService.GetUsableMonitorGeometry (Screen, Screen.GetMonitorAtPoint (x, y));
125
126
                                if (nudgeHorizontal) {
126
 
                                        if (allocation.Width <= geometry.Width && x + allocation.Width >= geometry.Width - edgeGap)
127
 
                                                x = geometry.Left + (geometry.Width - allocation.Height - edgeGap);
 
127
                                        if (allocation.Width <= geometry.Width && x + allocation.Width >= geometry.Left + geometry.Width - edgeGap)
 
128
                                                x = geometry.Left + (geometry.Width - allocation.Width - edgeGap);
128
129
                                        if (x <= geometry.Left + edgeGap)
129
130
                                                x = geometry.Left + edgeGap;
130
131
                                }
131
132
                                
132
133
                                if (nudgeVertical) {
133
 
                                        if (allocation.Height <= geometry.Height && y + allocation.Height >= geometry.Height - edgeGap)
 
134
                                        if (allocation.Height <= geometry.Height && y + allocation.Height >= geometry.Top + geometry.Height - edgeGap)
134
135
                                                y = geometry.Top + (geometry.Height - allocation.Height - edgeGap);
135
136
                                        if (y <= geometry.Top + edgeGap)
136
137
                                                y = geometry.Top + edgeGap;