summaryrefslogtreecommitdiff
path: root/src/ui/util.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-05-15 22:54:31 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-05-15 22:54:31 +0300
commitaeae3fa0c61afcfdec3a18342a8c2d072e234875 (patch)
tree04b71a011f859b6b19ec8a2763894ec91a709ebe /src/ui/util.c
parentafce90c9f6b52db97de29824d1afd1a0742550df (diff)
Widget: Rearranging expanding widgets
When starting a new arrangement, expanding widgets must be reset so they won't affect the outcome.
Diffstat (limited to 'src/ui/util.c')
-rw-r--r--src/ui/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/util.c b/src/ui/util.c
index e653b58c..82047479 100644
--- a/src/ui/util.c
+++ b/src/ui/util.c
@@ -1836,7 +1836,7 @@ static void updateValueInputWidth_(iWidget *dlg) {
1836 } 1836 }
1837 else { 1837 else {
1838 dlg->rect.size.x = 1838 dlg->rect.size.x =
1839 iMaxi(iMaxi(iMin(rootSize.x, 100 * gap_UI), title->rect.size.x), prompt->rect.size.x); 1839 iMin(rootSize.x, iMaxi(iMaxi(100 * gap_UI, title->rect.size.x), prompt->rect.size.x));
1840 } 1840 }
1841} 1841}
1842 1842