I'm currently working on an app that utilizes a traditional email layout similar to the one illustrated below.
Using the new CSS3 flexbox model, everything was functioning perfectly until I added the feature for users to dynamically insert new items in the folders box. I expected flexbox to keep the folders box from expanding downwards into the tasks box as long as there was still space available. Unfortunately, this is not the case (tested in Chrome 17).
I have created a JSFiddle here to showcase the issue. Click the Add Folder link and you'll notice the folders box growing despite having ample space left to accommodate the new item.
The question at hand is: How can I use flexbox to create two vertically aligned boxes where one takes up two thirds of the available height (box-flex 2) and the other takes up one third (box-flex 1), ensuring that when new content is added to the first box, it won't expand unless it runs out of space completely?