diff options
author | nyamatongwe <unknown> | 2002-09-08 01:30:56 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2002-09-08 01:30:56 +0000 |
commit | 5547ae01963ddac3c582ac9dfed477c74d21d103 (patch) | |
tree | ee8c6db5bf2a3ef2b112203ce9be60c141a0c88a /src | |
parent | 3809a32463d47565e1d3597135f6bcda4df5b63d (diff) | |
download | scintilla-mirror-5547ae01963ddac3c582ac9dfed477c74d21d103.tar.gz |
Patch from Robin to make autocompletion lists choose location more sensibly.
Diffstat (limited to 'src')
-rw-r--r-- | src/ScintillaBase.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx index 63f962cd5..a5e5a065d 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -251,8 +251,8 @@ void ScintillaBase::AutoCompleteStart(int lenEntered, const char *list) { // Make an allowance for large strings in list rcList.left = pt.x - 5; rcList.right = rcList.left + widthLB; - if (pt.y >= rcClient.bottom - heightLB && // Wont fit below. - pt.y >= (rcClient.bottom + rcClient.top) / 2) { // and there is more room above. + if (((pt.y + vs.lineHeight) >= (rcClient.bottom - heightAlloced)) && // Wont fit below. + ((pt.y + vs.lineHeight / 2) >= (rcClient.bottom + rcClient.top) / 2)) { // and there is more room above. rcList.top = pt.y - heightAlloced; } else { rcList.top = pt.y + vs.lineHeight; |