Sizes of the panel are set correctly