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 | edea6c258b6a2a14fcf47c41c8eceff44cddd8f7 (patch) | |
| tree | c6813c93ccbb61480dd3e785e91bdf5675d40c51 /src/ScintillaBase.cxx | |
| parent | 4c3550005ffaa11ef83fc91c4244b0d888382738 (diff) | |
| download | scintilla-mirror-edea6c258b6a2a14fcf47c41c8eceff44cddd8f7.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. | 
