summaryrefslogtreecommitdiff
path: root/src/ui/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/util.c')
-rw-r--r--src/ui/util.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ui/util.c b/src/ui/util.c
index cdc58154..5656c2c0 100644
--- a/src/ui/util.c
+++ b/src/ui/util.c
@@ -1020,7 +1020,7 @@ static void updateSheetPanelMetrics_(iWidget *sheet) {
1020 navi->rect.pos = init_I2(left, top); 1020 navi->rect.pos = init_I2(left, top);
1021 iConstForEach(PtrArray, i, findChildren_Widget(sheet, "panel.toppad")) { 1021 iConstForEach(PtrArray, i, findChildren_Widget(sheet, "panel.toppad")) {
1022 iWidget *pad = *i.value; 1022 iWidget *pad = *i.value;
1023 setSize_Widget(pad, init1_I2(naviHeight)); 1023 setFixedSize_Widget(pad, init1_I2(naviHeight));
1024 } 1024 }
1025#endif 1025#endif
1026 setFixedSize_Widget(navi, init_I2(-1, naviHeight)); 1026 setFixedSize_Widget(navi, init_I2(-1, naviHeight));
@@ -1916,7 +1916,10 @@ void updatePreferencesLayout_Widget(iWidget *prefs) {
1916 as_Widget(input)->rect.size.x = 0; 1916 as_Widget(input)->rect.size.x = 0;
1917 } 1917 }
1918 } 1918 }
1919 as_Widget(findChild_Widget(prefs, "bindings"))->rect.size.x = 0; 1919 iWidget *bindings = findChild_Widget(prefs, "bindings");
1920 if (bindings) {
1921 bindings->rect.size.x = 0;
1922 }
1920 resizeToLargestPage_Widget(tabs); 1923 resizeToLargestPage_Widget(tabs);
1921 arrange_Widget(prefs); 1924 arrange_Widget(prefs);
1922 iForIndices(i, inputIds) { 1925 iForIndices(i, inputIds) {