[Panels] fix display bugs when stacked