IntSize MenuItem::_getContentSize() { ISubWidgetText* text = getSubWidgetText(); if (text == nullptr) return mMinSize; return text->getTextSize() + (getSize() - text->getSize()); }