From 8ee0cb704931c0aac2f13f5cb3ce57cd953dcb61 Mon Sep 17 00:00:00 2001 From: Jacob Chapel Date: Sun, 15 Feb 2015 17:14:32 -0800 Subject: [PATCH] FIX: Use overage to keep usercard from going off browser --- app/assets/javascripts/discourse/views/user-card.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/views/user-card.js.es6 b/app/assets/javascripts/discourse/views/user-card.js.es6 index 66e62b88d58..e6e1d125394 100644 --- a/app/assets/javascripts/discourse/views/user-card.js.es6 +++ b/app/assets/javascripts/discourse/views/user-card.js.es6 @@ -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; }