Skip to content

Commit

Permalink
Fixed min and max height calculations on list layout tiles
Browse files Browse the repository at this point in the history
  • Loading branch information
Gold872 committed Oct 23, 2023
1 parent f077fca commit 38eb132
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/widgets/draggable_containers/draggable_list_layout.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 38eb132

Please sign in to comment.