Selectmenu: Properly set width for button

Fixes #10145

I'm not sure why this test fails. I put the exact same code in a demo and it worked properly.