When if a panel has layout properties like horizontal size and vertical size, then I'm able to hide the panel and space used by panel is also shrinking. But If the panel has layout properties like X and Y, then I'm able to hide the panel, But space used by panel is left blank and not removed.
How to make the space shrink, when the panel is hidden?