aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <nyamatongwe@gmail.com>2013-04-02 15:57:59 +1100
committernyamatongwe <nyamatongwe@gmail.com>2013-04-02 15:57:59 +1100
commite346c5341ed1965a01e3bad27c0c0feea75fb276 (patch)
tree74d9e884a95dad85287d3e9cc09ec921f4d07278 /src
parentedea6c258b6a2a14fcf47c41c8eceff44cddd8f7 (diff)
downloadscintilla-mirror-e346c5341ed1965a01e3bad27c0c0feea75fb276.tar.gz
Fix calltip position for Cocoa using ScrollView.
Diffstat (limited to 'src')
-rw-r--r--src/ScintillaBase.cxx5
1 files changed, 5 insertions, 0 deletions
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,