Browse Source

Don't move description window top left when window goes off of the screen

git-svn-id: svn://svn.code.sf.net/p/ditto-cp/code/trunk@774 595ec19a-5cb4-439b-94a8-42fb3063c22c
sabrogden 10 years ago
parent
commit
59329c0115
1 changed files with 0 additions and 20 deletions
  1. 0 20
      ToolTipEx.cpp

+ 0 - 20
ToolTipEx.cpp

@@ -189,31 +189,11 @@ BOOL CToolTipEx::Show(CPoint point)
 		
 		if (rect.right > rcScreen.right)
 		{
-			int diff = rect.right - rcScreen.right;
-
-			int newLeft = rect.left - diff;
-			if (newLeft > rcScreen.left)
-			{
-				rect.left = newLeft;
-			}
-			else
-			{
-				rect.left = rcScreen.left;
-			}
-
 			rect.right = rcScreen.right;
 			m_reducedWindowSize = true;
 		}
 		if (rect.bottom > rcScreen.bottom)
 		{
-			int diff = rect.bottom - rcScreen.bottom;
-
-			int newTop = rect.top - diff;
-			if (newTop > 0)
-			{
-				rect.top = newTop;
-			}
-
 			rect.bottom = rcScreen.bottom;
 			m_reducedWindowSize = true;
 		}