aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2014-02-20 12:03:41 +1100
committerNeil <nyamatongwe@gmail.com>2014-02-20 12:03:41 +1100
commite0b0f5f0a72ec3de2656bd2571fbb753852638ab (patch)
treec5cd5656c142684645b353fa57dc47eca739d789
parent02e7e7e205335c3ff7708449a696dc991511194e (diff)
downloadscintilla-mirror-e0b0f5f0a72ec3de2656bd2571fbb753852638ab.tar.gz
Reverse order of position adjustment so that calltips are more likely
to appear below text so lesss likely to cut off start of calltip.
-rw-r--r--src/ScintillaBase.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx
index 7850316e9..dc154ec6d 100644
--- a/src/ScintillaBase.cxx
+++ b/src/ScintillaBase.cxx
@@ -417,16 +417,16 @@ void ScintillaBase::CallTipShow(Point pt, const char *defn) {
// space
PRectangle rcClient = GetClientRectangle();
int offset = vs.lineHeight + rc.Height();
- // adjust so it displays below the text.
- if (rc.top < rcClient.top) {
- rc.top += offset;
- rc.bottom += offset;
- }
// adjust so it displays above the text.
if (rc.bottom > rcClient.bottom) {
rc.top -= offset;
rc.bottom -= offset;
}
+ // adjust so it displays below the text.
+ if (rc.top < rcClient.top) {
+ rc.top += offset;
+ rc.bottom += offset;
+ }
// Now display the window.
CreateCallTipWindow(rc);
ct.wCallTip.SetPositionRelative(rc, wMain);