Fix issue #271

Buttons should now behave correctly when they are stacked vertically