From fb627f1ae471ae2fe966cbd98f2e58f1c8d2e742 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Fri, 22 Oct 2021 18:51:15 +0300 Subject: Util: Wrap value input prompt --- src/ui/util.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/ui/util.c b/src/ui/util.c index 994f4671..7af9ca8b 100644 --- a/src/ui/util.c +++ b/src/ui/util.c @@ -1708,9 +1708,12 @@ iWidget *makeValueInput_Widget(iWidget *parent, const iString *initialValue, con setId_Widget( addChildFlags_Widget(dlg, iClob(new_LabelWidget(title, NULL)), frameless_WidgetFlag), "valueinput.title"); - setId_Widget( - addChildFlags_Widget(dlg, iClob(new_LabelWidget(prompt, NULL)), frameless_WidgetFlag), - "valueinput.prompt"); + iLabelWidget *promptLabel; + setId_Widget(addChildFlags_Widget( + dlg, iClob(promptLabel = new_LabelWidget(prompt, NULL)), frameless_WidgetFlag + | resizeToParentWidth_WidgetFlag | fixedHeight_WidgetFlag), + "valueinput.prompt"); + setWrap_LabelWidget(promptLabel, iTrue); iInputWidget *input = addChildFlags_Widget(dlg, iClob(new_InputWidget(0)), resizeToParentWidth_WidgetFlag); setContentPadding_InputWidget(input, 0.5f * gap_UI, 0.5f * gap_UI); -- cgit v1.2.3