aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ScintillaBase.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-04-04 15:46:53 +1000
committerNeil <nyamatongwe@gmail.com>2018-04-04 15:46:53 +1000
commit27a277fe4bfeff302b3ad4752e59311ef6426193 (patch)
tree1568f0c4c1a3bea1e8364ad9d18e8e1c3fb32d3b /src/ScintillaBase.cxx
parent3c3a5dba7a21d03d133566f116953cff527e2167 (diff)
downloadscintilla-mirror-27a277fe4bfeff302b3ad4752e59311ef6426193.tar.gz
Backport: Cache client rectangle on EditView so it can be used easily inside EditView.
Backport of changeset 6669:7402342dc7a3.
Diffstat (limited to 'src/ScintillaBase.cxx')
-rw-r--r--src/ScintillaBase.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx
index 3b0cd1a73..53118ae31 100644
--- a/src/ScintillaBase.cxx
+++ b/src/ScintillaBase.cxx
@@ -261,7 +261,7 @@ void ScintillaBase::AutoCompleteStart(Sci::Position lenEntered, const char *list
ac.Start(wMain, idAutoComplete, sel.MainCaret(), PointMainCaret(),
lenEntered, vs.lineHeight, IsUnicodeMode(), technology);
- const PRectangle rcClient = GetClientRectangle();
+ const PRectangle rcClient = view.ViewRectangle();
Point pt = LocationFromPosition(sel.MainCaret() - lenEntered);
PRectangle rcPopupBounds = wMain.GetMonitorRect(pt);
if (rcPopupBounds.Height() == 0)
@@ -477,7 +477,7 @@ void ScintillaBase::CallTipShow(Point pt, const char *defn) {
wMain);
// If the call-tip window would be out of the client
// space
- const PRectangle rcClient = GetClientRectangle();
+ const PRectangle rcClient = view.ViewRectangle();
const int offset = vs.lineHeight + static_cast<int>(rc.Height());
// adjust so it displays above the text.
if (rc.bottom > rcClient.bottom && rc.Height() < rcClient.Height()) {