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…
Reference in New Issue