Hello! Would it be possible to position elements ...
# kvision
d
Hello! Would it be possible to position elements in a
FlexPanel
like this: [
Div1
Div2
(space in the middle)
Div3
Div4
]
r
I don't think so. You should rather use three flex containers.
d
Ok thank you Robert for a quick answer 🙂
r
Just put two inner FlexPanels inside outer FlexPanel.
Or even better use HPanels (FlexPanels subclasses):
Copy code
hPanel(justify = JustifyContent.SPACEBETWEEN) {
    width = 100.perc
    hPanel(justify = JustifyContent.START) {
        div("Div1")
        div("Div2")
    }
    hPanel(justify = JustifyContent.END) {
        div("Div3")
        div("Div4")
    }
}