Fix calculation of inner width of container element when re-initialising.