aboutsummaryrefslogtreecommitdiffhomepage
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
commit52f88047a770786e24eb1ef3e5080b9d44522c9e (patch)
treeaff6b716d4ce1baa2d5908f20f6f9dd9c8cda82e
parente35f57a689edb13b1395465100569f3a900f8db7 (diff)
downloadscintilla-mirror-52f88047a770786e24eb1ef3e5080b9d44522c9e.tar.gz
Fix calltip position for Cocoa using ScrollView.scitex-3-3-0
-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,