diff options
Diffstat (limited to 'src/ScintillaBase.cxx')
-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); |