Better placement of the AutoComplete listbox
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17059 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
e9c54ec336
commit
27813df1f7
@ -251,7 +251,7 @@ 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.
|
||||
if (pt.y + vs.lineHeight >= rcClient.bottom - heightAlloced && // Wont fit below.
|
||||
pt.y >= (rcClient.bottom + rcClient.top) / 2) { // and there is more room above.
|
||||
rcList.top = pt.y - heightAlloced;
|
||||
} else {
|
||||
|
@ -251,7 +251,7 @@ 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.
|
||||
if (pt.y + vs.lineHeight >= rcClient.bottom - heightAlloced && // Wont fit below.
|
||||
pt.y >= (rcClient.bottom + rcClient.top) / 2) { // and there is more room above.
|
||||
rcList.top = pt.y - heightAlloced;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user