Fix(renderContainer): endless loop in width calculations

Introduced in #1848