问题
I am using border layout in ExtJs 4 wherein the east panel is a collapsible panel. When I expand the panel it forces the center panel to adjust (shrink). Similarly When the east panel is collapsed the center panel retracts.
The desired behavior is that when I expand the east panel it should float over the center panel and not force it to adjust itself. How can I achieve this?
回答1:
Set the floatable: true config option on the east panel. See also the Border layout example.
来源:https://stackoverflow.com/questions/18576497/making-a-panel-in-border-layout-to-float-over-center-panel