[EXPLORER] CTrayNotifyWnd: Only update the requested dimension when handling TNWM_GET...
authorGiannis Adamopoulos <gadamopoulos@reactos.org>
Sun, 28 Jan 2018 20:04:34 +0000 (22:04 +0200)
committerGiannis Adamopoulos <gadamopoulos@reactos.org>
Sun, 28 Jan 2018 20:04:34 +0000 (22:04 +0200)
base/shell/explorer/trayntfy.cpp

index a5ce527..0a85685 100644 (file)
@@ -173,6 +173,7 @@ public:
                 pSize->cx += TRAY_NOTIFY_WND_SPACING_X + szTrayClockMin.cx;
 
             pSize->cx += szTray.cx;
+            pSize->cx += ContentMargin.cxLeftWidth + ContentMargin.cxRightWidth;
         }
         else
         {
@@ -182,11 +183,9 @@ public:
                 pSize->cy += TRAY_NOTIFY_WND_SPACING_Y + szTrayClockMin.cy;
 
             pSize->cy += szTray.cy;
+            pSize->cy += ContentMargin.cyTopHeight + ContentMargin.cyBottomHeight;
         }
 
-        pSize->cy += ContentMargin.cyTopHeight + ContentMargin.cyBottomHeight;
-        pSize->cx += ContentMargin.cxLeftWidth + ContentMargin.cxRightWidth;
-
         return TRUE;
     }