diff options
author | nyamatongwe <nyamatongwe@gmail.com> | 2013-04-02 15:45:56 +1100 |
---|---|---|
committer | nyamatongwe <nyamatongwe@gmail.com> | 2013-04-02 15:45:56 +1100 |
commit | e35f57a689edb13b1395465100569f3a900f8db7 (patch) | |
tree | 11875e4bed61a9ad9ea558e279e0522717ea7655 /src/ScintillaBase.cxx | |
parent | 6d7aca3c835014caca0d7c4d5b75b36397c4b8c8 (diff) | |
download | scintilla-mirror-e35f57a689edb13b1395465100569f3a900f8db7.tar.gz |
Fix autocompletion position for Cocoa using ScrollView.
Diffstat (limited to 'src/ScintillaBase.cxx')
-rw-r--r-- | src/ScintillaBase.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx index 1cf146c06..bd096155b 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -235,6 +235,11 @@ void ScintillaBase::AutoCompleteStart(int lenEntered, const char *list) { Redraw(); pt = PointMainCaret(); } + if (wMargin.GetID()) { + Point ptOrigin = GetVisibleOriginInMain(); + pt.x += ptOrigin.x; + pt.y += ptOrigin.y; + } PRectangle rcac; rcac.left = pt.x - ac.lb->CaretFromEdge(); if (pt.y >= rcPopupBounds.bottom - heightLB && // Wont fit below. |