Add some more spaces for operators

This commit is contained in:
kondou 2014-03-07 09:46:08 +01:00
parent 770382aea9
commit 4257d10c2b
1 changed files with 4 additions and 4 deletions

View File

@ -165,10 +165,10 @@
button.children('span').first().text(settings.labels.length > 0 button.children('span').first().text(settings.labels.length > 0
? settings.labels.join(', ') ? settings.labels.join(', ')
: settings.title); : settings.title);
var newOuterWidth=Math.max( var newOuterWidth = Math.max(
(button.outerWidth()-2), (button.outerWidth() - 2),
settings.minOuterWidth settings.minOuterWidth
)+'px'; ) + 'px';
var newWidth=Math.max(button.width(),settings.minWidth); var newWidth=Math.max(button.width(),settings.minWidth);
var pos=button.position(); var pos=button.position();
button.css('width',oldWidth); button.css('width',oldWidth);
@ -281,7 +281,7 @@
var pos=button.position(); var pos=button.position();
if(($(document).height() > (button.offset().top + button.outerHeight() + list.children().length * button.height()) && 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() - 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({ list.css({
top:pos.top+button.outerHeight()-5, top:pos.top+button.outerHeight()-5,