Flush display before getting parent size.