I am creating an editor with 2 x panels. 1 x list panel (leftPanel) and 1 x node panel (rightPanel) aligned horizontally. I want to set the relative sizing as follows: mainContainer to stretch and fill the whole editor (width and height) leftPanel (child of mainContainer) to have a width of 128px and fill the remaining height in mainContainer. rightPanel (child of mainContainer) to stretch and fill remaining width and height in mainContainer listView (chiled of leftPanel) to stretch and fill remaining width and height of leftPanel Code (JavaScript): #mainContainer { flex-direction: row; align-self: flex-start; padding-left: 10px; padding-top: 10px; background-color: rgb(128, 128, 128); } #leftPanel { flex-direction: column; min-width: 128px; background-color: rgb(0, 0, 128); } #rightPanel { flex: 1; background-color: rgb(128, 128, 0); } I can't seem to get the panels to size properly using flex: 1 0 What am I doing wrong?
A bit late but, try adding: Code (JavaScript): flex-grow: 1; to your #mainContainer container. Same for the #rightPanel (instead of just flex: 1).
FYI, we now have a dedicated sub-forums where you can use for all your questions and feedback related to UI Systems Previews. Cheers,