<table><tr><td style="">dfaure created this revision.<br />Restricted Application added a project: KDE PIM.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D5724" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>On startup the column sizes were calculated for a viewport without<br />
vertical scrollbar, and then not adjusted when the vertical scrollbar<br />
later appears. My fix is to simply always recalculate column sizes<br />
when the viewport is resized at any point. If I resize the mainwindow<br />
I still don't want a horizontal scrollbar under the messagelist.</p>

<p>This removes the need for showEvent since any change of size triggers<br />
resizeEvent anyway. I also can't see any use for recalculating the<br />
sizes on model reset (e.g. switching folders), QHeaderView appears to<br />
just keep the column sizes when doing that (might be my own QHeaderView<br />
fix, actually).</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>starting kmail, switching folders, resizing columns...</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R94 PIM: Message Library</div></div></div><br /><div><strong>BRANCH</strong><div><div>Applications/17.04</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D5724" rel="noreferrer">https://phabricator.kde.org/D5724</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>messagelist/src/core/view.cpp</div></div></div><br /><div><strong>To: </strong>dfaure, mlaurent<br /><strong>Cc: </strong>KDE PIM, dvasin, winterz, vkrause, mlaurent, knauss, dvratil<br /></div>