I want the following layout (the chart count in the top right is dynamic):

I tried to take a border-layout for the main container. Chart1 is region: 'west' and the rest is in region: 'center'.
In the center, I got a vbox container, with 2 containers, one for the charts (top) and one is the grid (bottom)
The Problem is now, that these 2 containers want a fixed width, or else they get a zero width…
Also I want to have all the containers to be fluid, so I can resize everything without getting empty spaces.
I read about using flex: 1 if I want some containers in a vbox to to get a 100% width, but this didn’t work. It just made the 2 containers in the vbox use the same height.
Any ideas?
Have you tried
tablelayout? It’s quite easy to create such layout with it. Example:Working sample: http://jsbin.com/ojijax/1/
To have dynamic layout IMO the best solution is to use
hboxandvboxlayouts.For example you can wrap charts from 2 to n into one container, let’s say
chartPanel– this will havehboxlayout. Then wrapchartPanelandgridinto another container –panelwithvboxlayout. Then again wrapchart1withpanelwithhboxlayout. Then you must setalign: stretchfor eachboxlayout, and proper flex to divide screen equaly.Working sample: http://jsfiddle.net/75T7h/