diff options
author | Neil <nyamatongwe@gmail.com> | 2014-02-20 12:03:41 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2014-02-20 12:03:41 +1100 |
commit | a0cc83c4a4746656294c07b25e7e71785b47866b (patch) | |
tree | 0f28e0fc259eae7cbc5fdf45102ad6f79a5fc8f0 | |
parent | 71967b027342095f813833eeda7a72abc8fe08dd (diff) | |
download | scintilla-mirror-a0cc83c4a4746656294c07b25e7e71785b47866b.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.cxx | 10 |
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); |