[Bug 966636] Decreasing size of panel aloowed only on the bottom size of the screen