Revert "DEV: Move popups left if application.hbs wrapper is moved by theme" (#11184)
This reverts commit 95c871be3e
.
This commit is contained in:
parent
5ae82c0492
commit
47a91742b0
|
@ -69,10 +69,7 @@ export default Component.extend({
|
||||||
}
|
}
|
||||||
|
|
||||||
const shareLinkWidth = $this.width();
|
const shareLinkWidth = $this.width();
|
||||||
const pageLeftOffset = document.querySelector(
|
let x = $currentTargetOffset.left - shareLinkWidth / 2;
|
||||||
".ember-application > .ember-view"
|
|
||||||
).offsetLeft;
|
|
||||||
let x = $currentTargetOffset.left - pageLeftOffset - shareLinkWidth / 2;
|
|
||||||
if (x < 25) {
|
if (x < 25) {
|
||||||
x = 25;
|
x = 25;
|
||||||
}
|
}
|
||||||
|
|
|
@ -201,10 +201,7 @@ export default Mixin.create({
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// The site direction is ltr
|
// The site direction is ltr
|
||||||
const pageLeftOffset = document.querySelector(
|
position.left += target.width() + 10;
|
||||||
".ember-application > .ember-view"
|
|
||||||
).offsetLeft;
|
|
||||||
position.left += target.width() - pageLeftOffset + 10;
|
|
||||||
|
|
||||||
let overage = $(window).width() - 50 - (position.left + width);
|
let overage = $(window).width() - 50 - (position.left + width);
|
||||||
if (overage < 0) {
|
if (overage < 0) {
|
||||||
|
|
Loading…
Reference in New Issue