Fix problem with resizing of the SquareContainer