ui/dropdownmenu: run sizeAndCenter in constructor if doSizeAndCenter is set to true