mirror of
https://github.com/discourse/discourse.git
synced 2025-02-26 23:56:54 +00:00
FIX: Use overage to keep usercard from going off browser
This commit is contained in:
parent
b5bcf7bf3d
commit
8ee0cb7049
@ -83,7 +83,7 @@ export default Discourse.View.extend(CleansUp, {
|
||||
|
||||
var overage = ($(window).width() - 50) - (position.left + width);
|
||||
if (overage < 0) {
|
||||
position.left -= (width/2) - 10;
|
||||
position.left += overage;
|
||||
position.top += target.height() + 8;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user