Remaining bug when resizing the window horizontally. Not that problematic and not related to the proposed code apparently.