From 52f88047a770786e24eb1ef3e5080b9d44522c9e Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 2 Apr 2013 15:57:59 +1100 Subject: Fix calltip position for Cocoa using ScrollView. --- src/ScintillaBase.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx index bd096155b..64411ed1a 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -397,6 +397,11 @@ void ScintillaBase::CallTipShow(Point pt, const char *defn) { if (ct.UseStyleCallTip()) { ct.SetForeBack(vs.styles[STYLE_CALLTIP].fore, vs.styles[STYLE_CALLTIP].back); } + if (wMargin.GetID()) { + Point ptOrigin = GetVisibleOriginInMain(); + pt.x += ptOrigin.x; + pt.y += ptOrigin.y; + } PRectangle rc = ct.CallTipStart(sel.MainCaret(), pt, vs.lineHeight, defn, -- cgit v1.2.3