summaryrefslogtreecommitdiff
path: root/src/ui/bindingswidget.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-03-30 15:03:04 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-03-30 15:03:04 +0300
commit8ab2c6c2a27f888602ea05afaf05a75ecca9bf02 (patch)
treef6160a88fa05ae2fc6b34c04d96f5cc637f40ba4 /src/ui/bindingswidget.c
parent23f70040368e8d5577f89b2bacf303b5dac8561f (diff)
Widget: Arrangement debugging; min size
There is a problem with repeated arrangements: the previous set sizes affect subsequent outcomes. This results in Preferences not being able to reduce in size, only to expand. It should be possible to reset sizes back to zero/minimum size before starting an arrangement, but LabelWidget needs to cooperate by using `minSize` to set its default size. `minSize` is preferable to fixedSize because then the widget can go through the usual arranging logic. To be continued at a later time...
Diffstat (limited to 'src/ui/bindingswidget.c')
-rw-r--r--src/ui/bindingswidget.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui/bindingswidget.c b/src/ui/bindingswidget.c
index c73982b3..dc23dd6e 100644
--- a/src/ui/bindingswidget.c
+++ b/src/ui/bindingswidget.c
@@ -110,6 +110,7 @@ static void updateItems_BindingsWidget_(iBindingsWidget *d) {
110void init_BindingsWidget(iBindingsWidget *d) { 110void init_BindingsWidget(iBindingsWidget *d) {
111 iWidget *w = as_Widget(d); 111 iWidget *w = as_Widget(d);
112 init_Widget(w); 112 init_Widget(w);
113 setId_Widget(w, "bindings");
113 setFlags_Widget(w, resizeChildren_WidgetFlag, iTrue); 114 setFlags_Widget(w, resizeChildren_WidgetFlag, iTrue);
114 d->activePos = iInvalidPos; 115 d->activePos = iInvalidPos;
115 d->contextPos = iInvalidPos; 116 d->contextPos = iInvalidPos;