Calculate desired size properly for linearly laid out widgets.

Must have missed this in a previous refactoring..