#204 always calculate minWidth and minHeight to prevent caching