We need to take into account the main item's dimensions in the minimum width and height properties.
mentioned in commit 3ba58398