DEV: Add an offset mobile devices (#21119)

This commit is contained in:
Keegan George 2023-04-17 13:35:11 -07:00 committed by GitHub
parent 8405ae7733
commit d3f3914ade
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -59,6 +59,7 @@ export default Component.extend(KeyEnterEscape, {
editPost: null,
_popper: null,
popperPlacement: "top-start",
popperOffset: [0, 3],
_isFastEditable: false,
_displayFastEditInput: false,
@ -199,6 +200,12 @@ export default Component.extend(KeyEnterEscape, {
if (showAtEnd) {
this.popperPlacement = "bottom-start";
if (isAndroid) {
this.popperOffset = [0, 25];
} else {
this.popperOffset = [0, 15];
}
}
// change the position of the button
@ -222,7 +229,7 @@ export default Component.extend(KeyEnterEscape, {
{
name: "offset",
options: {
offset: [0, 3],
offset: this.popperOffset,
},
},
],