Selectmenu: Properly set width for button

Fixes #10145
Closes gh-1296