Fixed issue #1643: TortoiseGitMerge window do not maximize correctly on screeen with...
authorSup Yut Sum <ch3cooli@gmail.com>
Mon, 11 Feb 2013 09:34:04 +0000 (11 17:34 +0800)
committerSup Yut Sum <ch3cooli@gmail.com>
Mon, 11 Feb 2013 09:34:04 +0000 (11 17:34 +0800)
Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>
src/Changelog.txt
src/TortoiseMerge/MainFrm.cpp

index af7c45e..e20ce65 100644 (file)
@@ -12,6 +12,7 @@ Released: unreleased
 \r
 == Bug Fixes ==\r
  * Fixed issue #1642: Incorrect behavior if repo is located on root of drive\r
+ * Fixed issue #1643: TortoiseGitMerge window do not maximize correctly on screeen with right-side docked start bar\r
 \r
 = Release 1.8.1.0 =\r
 Released: 2013-02-07\r
index adf2fd1..ca943cd 100644 (file)
@@ -933,6 +933,15 @@ void CMainFrame::OnSize(UINT nType, int cx, int cy)
                m_bCheckReload = false;\r
                CheckForReload();\r
        }\r
+\r
+       // workaround for ribbon interface when taskbar is on the left/top\r
+       if (nType == SIZE_MAXIMIZED)\r
+       {\r
+               WINDOWPLACEMENT wp;\r
+               GetWindowPlacement(&wp);\r
+               wp.ptMaxPosition.x = wp.ptMaxPosition.y = 0;\r
+               SetWindowPlacement(&wp);\r
+       }\r
 }\r
 \r
 void CMainFrame::OnViewWhitespaces()\r