fixed span card overflowing (#1071)

This commit is contained in:
ggurdin 2024-11-20 09:00:18 -05:00 committed by GitHub
parent 5bea087353
commit 1c997fd864
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -478,6 +478,7 @@ class InputBar extends StatelessWidget {
enableSuggestions: false,
readOnly:
controller != null && controller!.choreographer.isRunningIT,
autocorrect: false,
// Pangea#
controller: controller,
focusNode: focusNode,

View file

@ -114,7 +114,7 @@ class OverlayUtil {
MediaQuery.of(context).size.width - (horizontalMidpoint + halfMaxWidth);
if (hasLeftOverflow) {
xOffset = (transformTargetOffset.dx - halfMaxWidth) * -1;
xOffset = (horizontalMidpoint - halfMaxWidth) * -1;
} else if (hasRightOverflow) {
xOffset = MediaQuery.of(context).size.width -
(horizontalMidpoint + halfMaxWidth);