Skip to content

Commit

Permalink
Fix minimum widget dimensions not being applied when dragging
Browse files Browse the repository at this point in the history
  • Loading branch information
Gold872 committed Dec 18, 2023
1 parent 563ceee commit 27a2b1f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/widgets/tab_grid.dart
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,13 @@ class TabGrid extends StatelessWidget {
constrainedRect.top + newHeight,
);
}
} else {
constrainedRect = Rect.fromLTWH(
newRect.left,
newRect.top,
newWidth,
newHeight,
);
}

double previewX = DraggableWidgetContainer.snapToGrid(constrainedRect.left);
Expand Down

0 comments on commit 27a2b1f

Please sign in to comment.