Embrace the flexible box model in the widgets

Rename container->box here and in all JS.