From: kondou Date: Fri, 7 Mar 2014 08:46:08 +0000 (+0100) Subject: Add some more spaces for operators X-Git-Tag: v7.0.0alpha2~149^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4257d10c2b3dc4e11898f40125061295151ca6cc;p=nextcloud-server.git Add some more spaces for operators --- diff --git a/core/js/multiselect.js b/core/js/multiselect.js index 2174b74622d..dac39b6acf5 100644 --- a/core/js/multiselect.js +++ b/core/js/multiselect.js @@ -165,10 +165,10 @@ button.children('span').first().text(settings.labels.length > 0 ? settings.labels.join(', ') : settings.title); - var newOuterWidth=Math.max( - (button.outerWidth()-2), + var newOuterWidth = Math.max( + (button.outerWidth() - 2), settings.minOuterWidth - )+'px'; + ) + 'px'; var newWidth=Math.max(button.width(),settings.minWidth); var pos=button.position(); button.css('width',oldWidth); @@ -281,7 +281,7 @@ var pos=button.position(); if(($(document).height() > (button.offset().top + button.outerHeight() + list.children().length * button.height()) && $(document).height() - button.offset().top > (button.offset().top+button.outerHeight() + list.children().length * button.height())) || - $(document).height()/2 > button.offset().top + $(document).height() / 2 > button.offset().top ) { list.css({ top:pos.top+button.outerHeight()-5,