Is it possible to have two panels deployed with borderlayout?

asked 2020-04-23 18:48:26 +0800

softteam gravatar image softteam
120 7

I mean, I want to have two panels open and when I fold one panel the other takes up all its space and vice versa. ¿is it possible with borderlayout or another component? I illustrate with images what I want image description image description image description

The best solution found is this:

        <center border="none">
                <center border="none" autoscroll="true">

                <south id="" title="_Facturación pendiente en el periodo"  size="100%" collapsible="true" splittable="true"   open="true" >

        <south id="" title="_Facturas registradas en el periodo" size="50%" border="none"  splittable="true" collapsible="true" open="true">


But when I collapse the north layer it is not positioned up

delete flag offensive retag edit

1 Answer

Sort by » oldest newest most voted

answered 2020-04-29 15:47:49 +0800

MDuchemin gravatar image MDuchemin
1688 1 5
ZK Team

Hi there,

This kind of structure can be done more easily with splitlayout:


Or with a tabbox in accordion mold (although accordion will only display 1 of the panels at a time):


The main difficulty with borderlayout is that it is meant to have a "center" panel on focus all the time. This center usually is not moving or resizing while the rest of the panels arrange themselves around it. Do you have a specific requirement, or structure in which you need to use splitlayout? Otherwise, I think splitlayout is the better option.

link publish delete flag offensive edit


Yes, in the end I opted to use the splitlayout but I wanted a visual option like the one in borderlayout where I visualize the title with the border and the arrow that makes it more intuitive for the user

softteam ( 2020-04-30 23:27:49 +0800 )edit

You can consider using a title bar with an arrow on the bottom of the top container, and one on the top of the bottom container.

MDuchemin ( 2020-05-04 16:54:51 +0800 )edit

Since the splitlayout can be controled from any event, you can wire these bars to open / toggle the status of the splitlayout

MDuchemin ( 2020-05-04 16:55:29 +0800 )edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

1 follower



Asked: 2020-04-23 18:48:26 +0800

Seen: 5 times

Last updated: Apr 29

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More