FIX: inconsistent user card position in Safari

User cards triggered in header were incorrectly positioned in Safari desktop.

Using `position()` instead of `offset()` is more consistent, since header is a fixed element in this scenario.
This commit is contained in:
Penar Musaraj 2019-04-02 10:32:50 -04:00
parent 6ebadaed2c
commit a2c6683e3b

View File

@ -169,6 +169,11 @@ export default Ember.Mixin.create({
if (target) {
if (!this.site.mobileView) {
let position = target.offset();
if (target.parents('.d-header')) {
position = target.position();
position.left += 10;
}
if (position) {
position.bottom = "unset";