Fix truncate titles when resizing