FIX: Overlapping quote reply button on Android.
This commit is contained in:
parent
3ae1df63d5
commit
fa56082f94
|
@ -62,7 +62,9 @@ export default Ember.Controller.extend({
|
||||||
markerElement.appendChild(document.createTextNode("\ufeff"));
|
markerElement.appendChild(document.createTextNode("\ufeff"));
|
||||||
|
|
||||||
const isMobileDevice = this.site.isMobileDevice;
|
const isMobileDevice = this.site.isMobileDevice;
|
||||||
const isIOS = this.capabilities.isIOS;
|
const capabilities = this.capabilities,
|
||||||
|
isIOS = capabilities.isIOS,
|
||||||
|
isAndroid = capabilities.isAndroid;
|
||||||
|
|
||||||
// collapse the range at the beginning/end of the selection
|
// collapse the range at the beginning/end of the selection
|
||||||
range.collapse(!isMobileDevice);
|
range.collapse(!isMobileDevice);
|
||||||
|
@ -86,7 +88,7 @@ export default Ember.Controller.extend({
|
||||||
let topOff = markerOffset.top;
|
let topOff = markerOffset.top;
|
||||||
let leftOff = markerOffset.left;
|
let leftOff = markerOffset.left;
|
||||||
|
|
||||||
if (isMobileDevice || isIOS) {
|
if (isMobileDevice || isIOS || isAndroid) {
|
||||||
topOff = topOff + 20;
|
topOff = topOff + 20;
|
||||||
leftOff = Math.min(leftOff + 10, $(window).width() - $quoteButton.outerWidth());
|
leftOff = Math.min(leftOff + 10, $(window).width() - $quoteButton.outerWidth());
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue