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:
Sam 2015-02-16 12:42:02 +11:00
commit f7fa13049c
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); 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;
} }