Index: base/shell/explorer-new/taskswnd.c =================================================================== --- base/shell/explorer-new/taskswnd.c (revision 58178) +++ base/shell/explorer-new/taskswnd.c (working copy) @@ -1298,12 +1298,16 @@ /* Determine the minimum and maximum width of a button */ if (Horizontal) + { uiMax = GetSystemMetrics(SM_CXMINIMIZED); + uiMin = GetSystemMetrics(SM_CXSIZE) + (2 * GetSystemMetrics(SM_CXEDGE)); + } else + { uiMax = rcClient.right; + uiMin = rcClient.right; + } - uiMin = GetSystemMetrics(SM_CXSIZE) + (2 * GetSystemMetrics(SM_CXEDGE)); - if (NewBtnSize < (LONG)uiMin) NewBtnSize = uiMin; if (NewBtnSize > (LONG)uiMax)