tweak positioning when it has no room to right

This commit is contained in:
Sam 2014-11-06 16:25:40 +11:00
parent e3bfc2e447
commit 246f77c98d
1 changed files with 2 additions and 2 deletions

View File

@ -73,8 +73,8 @@ export default Discourse.View.extend(CleansUp, {
var overage = ($(window).width() - 50) - (position.left + width);
if (overage < 0) {
position.left += overage;
position.top += target.height() + 5;
position.left -= (width/2) - 10;
position.top += target.height() + 8;
}
position.top -= $('#main-outlet').offset().top;