From 14d63258d8ec8378cd7e8e3ddaa51e4c6657e9db Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 8 Sep 2002 01:30:56 +0000 Subject: Patch from Robin to make autocompletion lists choose location more sensibly. --- src/ScintillaBase.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.3