chore: account for top screen padding when adjusting overlay position on header overflow (#3647)
This commit is contained in:
parent
d083e53d47
commit
3ca759229b
1 changed files with 6 additions and 2 deletions
|
|
@ -339,8 +339,12 @@ class MessageSelectionPositionerState extends State<MessageSelectionPositioner>
|
|||
double boxHeight =
|
||||
screenHeight - _originalMessageOffset.dy - originalContentHeight;
|
||||
|
||||
if (boxHeight + _fullContentHeight > screenHeight) {
|
||||
boxHeight = screenHeight - _fullContentHeight - 8.0;
|
||||
final neededSpace =
|
||||
boxHeight + _fullContentHeight + mediaQuery!.padding.top;
|
||||
|
||||
if (neededSpace > screenHeight) {
|
||||
boxHeight =
|
||||
screenHeight - _fullContentHeight - mediaQuery!.padding.top - 4.0;
|
||||
}
|
||||
|
||||
return boxHeight;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue