Search code examples
javascriptlayoutextjsborderextjs3

ExtJS 3.2: Hide central panel at layout "border"


enter image description here

Hello! In my project I have a window, whose structure is described on a picture. For some reasons, inherited from the previous versions of the project, I need to create a function that will hide parts of the window (panels). If I hide the panel C2 - everything is fine, works exactly as I wanted, but if I hide the panel C1, which has region: "center", the other panel does not occupy the region C1. It looks like a bug.

I know that I'm doing something wrong, but I still need some kind of hack to hide the central panels.

I tried to reassign the region: "center" to the other panel, but it did not work.

test case


Solution

  • ExtJS does not allow to remove center panel of a border layout. However you can add and remove items from the center panel.