fix: update how top overflow is calculated for overlays (#4718)
This commit is contained in:
parent
9a5e9ea2e9
commit
a504b8b832
1 changed files with 1 additions and 4 deletions
|
|
@ -155,14 +155,11 @@ class OverlayUtil {
|
|||
final horizontalMidpoint = (transformTargetOffset.dx - columnWidth) +
|
||||
(transformTargetSize.width / 2);
|
||||
|
||||
final verticalMidpoint =
|
||||
transformTargetOffset.dy + (transformTargetSize.height / 2);
|
||||
|
||||
final halfMaxWidth = maxWidth / 2;
|
||||
final hasLeftOverflow = (horizontalMidpoint - halfMaxWidth) < 10;
|
||||
final hasRightOverflow = (horizontalMidpoint + halfMaxWidth) >
|
||||
(MediaQuery.of(context).size.width - columnWidth - 10);
|
||||
hasTopOverflow = (verticalMidpoint - maxHeight) < 0;
|
||||
hasTopOverflow = maxHeight + kToolbarHeight > transformTargetOffset.dy;
|
||||
|
||||
double xOffset = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue