Fix St-CRITICAL because of accesssing the width of a BoxLayout before it was rendered.