A refinement of my patch from Neil Hodgson

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17074 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2002-09-08 01:07:16 +00:00
parent 8255d371b6
commit 22a3a1994c
2 changed files with 4 additions and 4 deletions

View File

@@ -251,8 +251,8 @@ void ScintillaBase::AutoCompleteStart(int lenEntered, const char *list) {
// Make an allowance for large strings in list // Make an allowance for large strings in list
rcList.left = pt.x - 5; rcList.left = pt.x - 5;
rcList.right = rcList.left + widthLB; rcList.right = rcList.left + widthLB;
if (pt.y + vs.lineHeight >= rcClient.bottom - heightAlloced && // Wont fit below. if (((pt.y + vs.lineHeight) >= (rcClient.bottom - heightAlloced)) && // Wont fit below.
pt.y >= (rcClient.bottom + rcClient.top) / 2) { // and there is more room above. ((pt.y + vs.lineHeight / 2) >= (rcClient.bottom + rcClient.top) / 2)) { // and there is more room above.
rcList.top = pt.y - heightAlloced; rcList.top = pt.y - heightAlloced;
} else { } else {
rcList.top = pt.y + vs.lineHeight; rcList.top = pt.y + vs.lineHeight;

View File

@@ -251,8 +251,8 @@ void ScintillaBase::AutoCompleteStart(int lenEntered, const char *list) {
// Make an allowance for large strings in list // Make an allowance for large strings in list
rcList.left = pt.x - 5; rcList.left = pt.x - 5;
rcList.right = rcList.left + widthLB; rcList.right = rcList.left + widthLB;
if (pt.y + vs.lineHeight >= rcClient.bottom - heightAlloced && // Wont fit below. if (((pt.y + vs.lineHeight) >= (rcClient.bottom - heightAlloced)) && // Wont fit below.
pt.y >= (rcClient.bottom + rcClient.top) / 2) { // and there is more room above. ((pt.y + vs.lineHeight / 2) >= (rcClient.bottom + rcClient.top) / 2)) { // and there is more room above.
rcList.top = pt.y - heightAlloced; rcList.top = pt.y - heightAlloced;
} else { } else {
rcList.top = pt.y + vs.lineHeight; rcList.top = pt.y + vs.lineHeight;