mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
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:
parent
6ebadaed2c
commit
a2c6683e3b
@ -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";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user