M: dont set preferredSize if opt[size] is undefined