<table><tr><td style="">davidedmundson created this revision.<br />davidedmundson added a reviewer: Plasma.<br />Herald added a project: Plasma.<br />Herald added a subscriber: plasma-devel.<br />davidedmundson requested review of this revision.
</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/D18597">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>We have a listview in a popup. The popup is resized to the listview<br />
content height.</p>

<p>Because the popup starts out at size 0 the listview thinks it's too<br />
small to show anything.</p>

<p>So it doesn't load any delegates.</p>

<p>As it has no delegates it can't guess the contentHeight.<br />
contentHeight is a guess based on count * (currentHeight<br />
/ currentlyLoadedDelegates)</p>

<p>That means the popup doesn't resize properly.</p>

<p>Ultimately it does end up showing a two entries, but it doesn't<br />
re-evaluate the contentHeight properly to resize the popup correctly.</p>

<p>Forcing it to load one delegate is enough to break that cycle.</p>

<p>BUG: 403736</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Opened popup in cursortheme and fonts<br />
Worked correctly</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R858 Qt Quick Controls 2: Desktop Style</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D18597">https://phabricator.kde.org/D18597</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>org.kde.desktop/ComboBox.qml</div></div></div><br /><div><strong>To: </strong>davidedmundson, Plasma<br /><strong>Cc: </strong>plasma-devel, jraleigh, GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>