diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-10-23 07:21:52 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-10-23 07:21:52 +0300 |
commit | fec103fa64e5d2176ac2c0662c062e692178315c (patch) | |
tree | bab875163e1fb79c2e14f88b0635369504736720 | |
parent | 6cb8cab666b52858ab13c41f8421dc3eb88ad3e0 (diff) |
DocumentWidget: Footer buttons in phone layout
Include a padding under the buttons to account for the toolbar.
-rw-r--r-- | src/ui/documentwidget.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 | |||
1143 | checkIcon_LabelWidget(button); | 1143 | checkIcon_LabelWidget(button); |
1144 | setFont_LabelWidget(button, uiContent_FontId); | 1144 | setFont_LabelWidget(button, uiContent_FontId); |
1145 | } | 1145 | } |
1146 | if (deviceType_App() == phone_AppDeviceType) { | ||
1147 | /* Footer buttons shouldn't be under the toolbar. */ | ||
1148 | addChild_Widget(d->footerButtons, iClob(makePadding_Widget(height_Widget(d->phoneToolbar)))); | ||
1149 | } | ||
1146 | addChild_Widget(as_Widget(d), iClob(d->footerButtons)); | 1150 | addChild_Widget(as_Widget(d), iClob(d->footerButtons)); |
1147 | arrange_Widget(d->footerButtons); | 1151 | arrange_Widget(d->footerButtons); |
1148 | arrange_Widget(w); | 1152 | arrange_Widget(w); |