don't set buttonWidth if it's set to auto

setting width = auto on element will prevent the element from being
formatted via CSS