FIX: Use overage to keep usercard from going off browser

This commit is contained in:
Jacob Chapel 2015-02-15 17:14:32 -08:00
parent b5bcf7bf3d
commit 8ee0cb7049
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}