Improve Container.resize

The computation of the width should take care of the colspan and should try to
optimize the expansion.

review1145002
Always show vertical scroll to always correctly the menu