diff options
author | Neil <nyamatongwe@gmail.com> | 2014-02-02 18:04:02 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2014-02-02 18:04:02 +1100 |
commit | bac0c02143ee1dbd92a274d2e194e6274c420281 (patch) | |
tree | b26e0feeba27a89725cec9b0487ecb91dbb57838 | |
parent | 1fb96a86598b86bef268cf86930fc3d7a1351364 (diff) | |
download | scintilla-mirror-bac0c02143ee1dbd92a274d2e194e6274c420281.tar.gz |
Fix bug when resizing list with only short strings caused the list to move.
-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())}; |