summaryrefslogtreecommitdiff
path: root/src/ui/window.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-04-09 22:08:51 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-04-10 06:29:31 +0300
commit2e9be8d9ceb6b2ee5d15e63b82c4be6ceca54429 (patch)
tree05f0696d5aef89f873c34f0edc7ffe1fc2132c3d /src/ui/window.c
parentb257fc841afa92676a16a4c7ac58f0512561cfd5 (diff)
Identities: New/Import buttons below list
Diffstat (limited to 'src/ui/window.c')
-rw-r--r--src/ui/window.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ui/window.c b/src/ui/window.c
index 3ea45695..5ebebf1c 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -502,8 +502,10 @@ static void updatePadding_Window_(iWindow *d) {
502 } 502 }
503 } 503 }
504 if (toolBar) { 504 if (toolBar) {
505 iWidget *sidebar = findChild_Widget(d->root, "sidebar"); 505 /* TODO: get this from toolBar height, but it's buggy for some reason */
506 setPadding_Widget(sidebar, 0, 0, 0, isPortrait_App() ? 11 * gap_UI + bottom : 0); 506 const int sidebarBottomPad = isPortrait_App() ? 11 * gap_UI + bottom : 0;
507 setPadding_Widget(findChild_Widget(d->root, "sidebar"), 0, 0, 0, sidebarBottomPad);
508 setPadding_Widget(findChild_Widget(d->root, "sidebar2"), 0, 0, 0, sidebarBottomPad);
507 /* TODO: There seems to be unrelated layout glitch in the sidebar where its children 509 /* TODO: There seems to be unrelated layout glitch in the sidebar where its children
508 are not arranged correctly until it's hidden and reshown. */ 510 are not arranged correctly until it's hidden and reshown. */
509 } 511 }