aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2005-06-27 11:31:38 +0000
committernyamatongwe <devnull@localhost>2005-06-27 11:31:38 +0000
commit6a84eb28b5f0bfd9d2bba3c03b6386671d0e757e (patch)
treef4c9ea877a8515caf629a2ec75ffdff2c8f88ac6
parent10821266a6e5f3e938ae9d7fcb0d59ea7ff81ee3 (diff)
downloadscintilla-mirror-6a84eb28b5f0bfd9d2bba3c03b6386671d0e757e.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.cxx4
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());
}