diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-06 22:16:36 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-06 22:16:36 +0300 |
commit | 7bbc20a1800fddb56a92ff970abd79f884fabab2 (patch) | |
tree | 11db161a6a989ee68aa9358a5b36cffb94ceaa7c /src/ui | |
parent | fdbff122e9ebade01a761efad26816f6049c86c3 (diff) |
DocumentWidget: Fixed bottom of visible range
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/documentwidget.c | 2 |
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) { | |||
204 | static iRangei visibleRange_DocumentWidget_(const iDocumentWidget *d) { | 204 | static 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 | ||
210 | static void addVisibleLink_DocumentWidget_(void *context, const iGmRun *run) { | 210 | static void addVisibleLink_DocumentWidget_(void *context, const iGmRun *run) { |