DEV: Add an offset mobile devices (#21119)
This commit is contained in:
parent
8405ae7733
commit
d3f3914ade
|
@ -59,6 +59,7 @@ export default Component.extend(KeyEnterEscape, {
|
||||||
editPost: null,
|
editPost: null,
|
||||||
_popper: null,
|
_popper: null,
|
||||||
popperPlacement: "top-start",
|
popperPlacement: "top-start",
|
||||||
|
popperOffset: [0, 3],
|
||||||
|
|
||||||
_isFastEditable: false,
|
_isFastEditable: false,
|
||||||
_displayFastEditInput: false,
|
_displayFastEditInput: false,
|
||||||
|
@ -199,6 +200,12 @@ export default Component.extend(KeyEnterEscape, {
|
||||||
|
|
||||||
if (showAtEnd) {
|
if (showAtEnd) {
|
||||||
this.popperPlacement = "bottom-start";
|
this.popperPlacement = "bottom-start";
|
||||||
|
|
||||||
|
if (isAndroid) {
|
||||||
|
this.popperOffset = [0, 25];
|
||||||
|
} else {
|
||||||
|
this.popperOffset = [0, 15];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// change the position of the button
|
// change the position of the button
|
||||||
|
@ -222,7 +229,7 @@ export default Component.extend(KeyEnterEscape, {
|
||||||
{
|
{
|
||||||
name: "offset",
|
name: "offset",
|
||||||
options: {
|
options: {
|
||||||
offset: [0, 3],
|
offset: this.popperOffset,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue