diff --git a/garage_ui/lib/select.dart b/garage_ui/lib/select.dart index ff92205..be32c44 100644 --- a/garage_ui/lib/select.dart +++ b/garage_ui/lib/select.dart @@ -454,7 +454,18 @@ class _SelectState extends State> { SizedBox(width: gap), ], Expanded( - child: Align(alignment: Alignment.center, child: valueChild), + // heightFactor, or this Align eats the whole viewport. An Align with + // no factor on an axis FILLS that axis, and the Row hands its + // children a loose vertical constraint, so the trigger measured 600 + // tall in a test and "however tall the pane is" in the app - while + // every button and field beside it sat on controlHeight. The other + // _Btn branch never hit it because its wrapped in an IntrinsicHeight. + // Width still fills, which is the bit we actually wanted. + child: Align( + alignment: Alignment.center, + heightFactor: 1, + child: valueChild, + ), ), if (!widget.iconOnly) ...[ SizedBox(width: gap),