summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-08-06 22:16:36 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-08-06 22:16:36 +0300
commit7bbc20a1800fddb56a92ff970abd79f884fabab2 (patch)
tree11db161a6a989ee68aa9358a5b36cffb94ceaa7c
parentfdbff122e9ebade01a761efad26816f6049c86c3 (diff)
DocumentWidget: Fixed bottom of visible range
-rw-r--r--src/ui/documentwidget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index f146ed67..661a9d46 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -204,7 +204,7 @@ static void requestFinished_DocumentWidget_(iAnyObject *obj) {
204static iRangei visibleRange_DocumentWidget_(const iDocumentWidget *d) { 204static iRangei visibleRange_DocumentWidget_(const iDocumentWidget *d) {
205 const int margin = gap_UI * d->pageMargin; 205 const int margin = gap_UI * d->pageMargin;
206 return (iRangei){ d->scrollY - margin, 206 return (iRangei){ d->scrollY - margin,
207 d->scrollY + height_Rect(bounds_Widget(constAs_Widget(d))) - margin }; 207 d->scrollY + height_Rect(bounds_Widget(constAs_Widget(d))) };
208} 208}
209 209
210static void addVisibleLink_DocumentWidget_(void *context, const iGmRun *run) { 210static void addVisibleLink_DocumentWidget_(void *context, const iGmRun *run) {