Skip to content

Commit

Permalink
DocumentWidget: Add footer whitespace to balance the header
Browse files Browse the repository at this point in the history
IssueID #63
  • Loading branch information
skyjake committed Jan 13, 2023
1 parent 0c71e67 commit 2e65bea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ui/documentwidget.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,10 +410,11 @@ static int phoneToolbarHeight_DocumentWidget_(const iDocumentWidget *d) {
}

static int footerHeight_DocumentWidget_(const iDocumentWidget *d) {
int hgt = height_Widget(d->footerButtons);
int hgt = iMaxi(height_Widget(d->footerButtons), height_Banner(d->banner));
if (isPortraitPhone_App()) {
hgt += phoneToolbarHeight_DocumentWidget_(d);
}
/* FIXME: Landscape phone also needs some extra space at the bottom: tab/nav bars. */
return hgt;
}

Expand Down

0 comments on commit 2e65bea

Please sign in to comment.