From 7bbc20a1800fddb56a92ff970abd79f884fabab2 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Thu, 6 Aug 2020 22:16:36 +0300 Subject: DocumentWidget: Fixed bottom of visible range --- src/ui/documentwidget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui/documentwidget.c') 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) { static iRangei visibleRange_DocumentWidget_(const iDocumentWidget *d) { const int margin = gap_UI * d->pageMargin; return (iRangei){ d->scrollY - margin, - d->scrollY + height_Rect(bounds_Widget(constAs_Widget(d))) - margin }; + d->scrollY + height_Rect(bounds_Widget(constAs_Widget(d))) }; } static void addVisibleLink_DocumentWidget_(void *context, const iGmRun *run) { -- cgit v1.2.3