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 | 1f043e9632fb250eb13f0ede58257ebfded2ed82 (patch) | |
| tree | 12d453a13735165d60e7c2516f9636bdad9c50c3 | |
| parent | 243623683a635db30ba2e2132ac133f24ce03f43 (diff) | |
| download | scintilla-mirror-1f043e9632fb250eb13f0ede58257ebfded2ed82.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())}; | 
