From fec103fa64e5d2176ac2c0662c062e692178315c Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sat, 23 Oct 2021 07:21:52 +0300 Subject: DocumentWidget: Footer buttons in phone layout Include a padding under the buttons to account for the toolbar. --- src/ui/documentwidget.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ui') diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index 4c194608..a762cb01 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c @@ -1143,6 +1143,10 @@ static void makeFooterButtons_DocumentWidget_(iDocumentWidget *d, const iMenuIte checkIcon_LabelWidget(button); setFont_LabelWidget(button, uiContent_FontId); } + if (deviceType_App() == phone_AppDeviceType) { + /* Footer buttons shouldn't be under the toolbar. */ + addChild_Widget(d->footerButtons, iClob(makePadding_Widget(height_Widget(d->phoneToolbar)))); + } addChild_Widget(as_Widget(d), iClob(d->footerButtons)); arrange_Widget(d->footerButtons); arrange_Widget(w); -- cgit v1.2.3