FIX: make sure the quote-reply button is never squished on mobile

This commit is contained in:
Régis Hanol 2014-07-30 17:39:53 +02:00
parent 5f620c5b98
commit 0b648f4b18
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ export default Discourse.Controller.extend({
if (Discourse.Mobile.isMobileDevice) {
top = top + 20;
left = left + 10;
left = Math.min(left + 10, $(window).width() - $quoteButton.outerWidth());
} else {
top = top - $quoteButton.outerHeight() - 5;
}