From 8ab2c6c2a27f888602ea05afaf05a75ecca9bf02 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Tue, 30 Mar 2021 15:03:04 +0300 Subject: 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... --- src/ui/bindingswidget.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ui/bindingswidget.c') 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) { void init_BindingsWidget(iBindingsWidget *d) { iWidget *w = as_Widget(d); init_Widget(w); + setId_Widget(w, "bindings"); setFlags_Widget(w, resizeChildren_WidgetFlag, iTrue); d->activePos = iInvalidPos; d->contextPos = iInvalidPos; -- cgit v1.2.3