Fix issues with size menus after oojs-ui update

These should fix all the issues we have now with the size menus.

Change-Id: Ief2e5e653330b01c9787e04a10b1b2c425da705e
Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/407
Merge "Fix issues with size menus after oojs-ui update"