fixed span card overflowing (#1071)
This commit is contained in:
parent
5bea087353
commit
1c997fd864
2 changed files with 2 additions and 1 deletions
|
|
@ -478,6 +478,7 @@ class InputBar extends StatelessWidget {
|
|||
enableSuggestions: false,
|
||||
readOnly:
|
||||
controller != null && controller!.choreographer.isRunningIT,
|
||||
autocorrect: false,
|
||||
// Pangea#
|
||||
controller: controller,
|
||||
focusNode: focusNode,
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue