Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
dengsgo committed May 28, 2023
1 parent 5e5906a commit ba15da2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/minix.dart
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,13 @@ class PositionViewState<T extends StatefulWidget> extends State<T> {
_yOffsetReverse = true;
}
}
// 如果出现显示异常,做最后的修正
if (left + widgetSize.width > containerPadding.right) {
left = containerPadding.right - widgetSize.width;
}
if (top + widgetSize.height > containerPadding.bottom) {
top = containerPadding.bottom - widgetSize.height;
}
positionMargin = EdgeInsets.only(
left: left,
top: top
Expand Down

0 comments on commit ba15da2

Please sign in to comment.