diff options
-rw-r--r-- | win32/PlatWin.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index f2a0747c6..a97012e6f 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -2532,8 +2532,9 @@ POINT ListBoxX::MinTrackSize() const { POINT ListBoxX::MaxTrackSize() const { PRectangle rc(0, 0, + Platform::Maximum(MinClientWidth(), maxCharWidth * maxItemCharacters + TextInset.x * 2 + - TextOffset() + ::GetSystemMetrics(SM_CXVSCROLL), + TextOffset() + ::GetSystemMetrics(SM_CXVSCROLL)), ItemHeight() * lti.Count()); AdjustWindowRect(&rc); POINT ret = {static_cast<LONG>(rc.Width()), static_cast<LONG>(rc.Height())}; |