mirror of
https://github.com/discourse/discourse.git
synced 2025-02-08 20:34:52 +00:00
Merge pull request #3205 from chapel/fix-usercard-out-of-browser
FIX: Use overage to keep usercard from going off browser
This commit is contained in:
commit
f7fa13049c
@ -83,7 +83,7 @@ export default Discourse.View.extend(CleansUp, {
|
|||||||
|
|
||||||
var overage = ($(window).width() - 50) - (position.left + width);
|
var overage = ($(window).width() - 50) - (position.left + width);
|
||||||
if (overage < 0) {
|
if (overage < 0) {
|
||||||
position.left -= (width/2) - 10;
|
position.left += overage;
|
||||||
position.top += target.height() + 8;
|
position.top += target.height() + 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user