From 38eb132f115ea4fdfb20bc21c6a399d64b5dceb3 Mon Sep 17 00:00:00 2001 From: Gold872 Date: Mon, 23 Oct 2023 18:51:03 -0400 Subject: [PATCH] Fixed min and max height calculations on list layout tiles --- lib/widgets/draggable_containers/draggable_list_layout.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/widgets/draggable_containers/draggable_list_layout.dart b/lib/widgets/draggable_containers/draggable_list_layout.dart index 49a1ccaa..b3a87dba 100644 --- a/lib/widgets/draggable_containers/draggable_list_layout.dart +++ b/lib/widgets/draggable_containers/draggable_list_layout.dart @@ -303,8 +303,10 @@ class DraggableListLayout extends DraggableLayoutContainer { child: Container( padding: const EdgeInsets.all(8.0), constraints: BoxConstraints( - minHeight: 96, - maxHeight: widget.displayRect.height - 32, + minHeight: (Globals.gridSize.toDouble() - 32) + .clamp(0, double.infinity), + maxHeight: + (widget.displayRect.height - 24).clamp(96, double.infinity), ), decoration: BoxDecoration( color: const Color.fromARGB(255, 45, 45, 45),