diff options
author | nyamatongwe <unknown> | 2005-06-27 11:31:38 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2005-06-27 11:31:38 +0000 |
commit | 81bea3ef315f41894bd8554cdcd982bc44ec9ab7 (patch) | |
tree | f4c9ea877a8515caf629a2ec75ffdff2c8f88ac6 | |
parent | e4ca95b63e9bcd5c07dca052710994614a100b87 (diff) | |
download | scintilla-mirror-81bea3ef315f41894bd8554cdcd982bc44ec9ab7.tar.gz |
Changed list box maximum size calculation to take scroll bar width and
image width into account which may help avoid truncation when using some
fonts.
-rw-r--r-- | win32/PlatWin.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index 9346c3fbe..c902104fd 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -1365,7 +1365,9 @@ Point ListBoxX::MinTrackSize() const { } Point ListBoxX::MaxTrackSize() const { - PRectangle rc(0, 0, maxCharWidth * maxItemCharacters, ItemHeight() * lti.Count()); + PRectangle rc(0, 0, maxCharWidth * maxItemCharacters + + + TextOffset() + ::GetSystemMetrics(SM_CXVSCROLL), + ItemHeight() * lti.Count()); AdjustWindowRect(&rc); return Point(rc.Width(), rc.Height()); } |