diff options
author | Neil Hodgson <nyamatongwe@gmail.com> | 2017-03-30 07:36:36 +1100 |
---|---|---|
committer | Neil Hodgson <nyamatongwe@gmail.com> | 2017-03-30 07:36:36 +1100 |
commit | 185e8b51cf67fe5d78b06aca50cd61c8015e851a (patch) | |
tree | cef1792d31c80d9adf0716d77a7fb0b4508d7476 | |
parent | 343ef6dfe59777bae027d92fce6eb9d257387852 (diff) | |
download | scintilla-mirror-185e8b51cf67fe5d78b06aca50cd61c8015e851a.tar.gz |
Make autocompletion slightly wider to avoid text truncation.
-rw-r--r-- | cocoa/PlatCocoa.mm | 3 | ||||
-rw-r--r-- | doc/ScintillaHistory.html | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/cocoa/PlatCocoa.mm b/cocoa/PlatCocoa.mm index ca599b34d..dbf78c303 100644 --- a/cocoa/PlatCocoa.mm +++ b/cocoa/PlatCocoa.mm @@ -1692,6 +1692,7 @@ PRectangle ListBoxImpl::GetDesiredRect() rcDesired.bottom = rcDesired.top + static_cast<XYPOSITION>(itemHeight * rows); rcDesired.right = rcDesired.left + maxItemWidth + aveCharWidth; + rcDesired.right += 4; // Ensures no truncation of text if (Length() > rows) { @@ -1704,7 +1705,7 @@ PRectangle ListBoxImpl::GetDesiredRect() [scroller setHasVerticalScroller:NO]; } rcDesired.right += maxIconWidth; - rcDesired.right += 6; + rcDesired.right += 6; // For icon space return rcDesired; } diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 61f9eee85..bf29e868e 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -533,6 +533,9 @@ The Python lexer recognizes identifiers more accurately when they include non-ASCII characters. </li> <li> + On Cocoa, the autocompletion is 4 pixels wider to avoid text truncation. + </li> + <li> SciTE user interface uses lighter colours and fewer 3D elements to match current desktop environments. </li> </ul> |