Fix landscape mode

Use bounds instead of frame to calculate width of the buttons. This caused the control to be the wrong size in landscape mode.