I admit, that I have not tested this yet, but I don't see any reason why this buttonset should become "vertical".
Shouldn't we need $('button', this).css('float','left') there and limit width of wrapped conteiner = max_width + paddings of buttons?