<table><tr><td style="">ngraham created this revision.<br />ngraham added reviewers: Plasma, mart.<br />Herald added a project: Frameworks.<br />Herald added a subscriber: kde-frameworks-devel.<br />ngraham 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/D20283">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>SimpleKCM currently imposes a maximum height of <tt style="background: #ebebeb; font-size: 13px;">Kirigami.Units.gridUnit * 20</tt>, which is<br />
arbitrary and results in many KCMs opened standalone in kcmshell still getting a scrollbar<br />
even when there's plenty of vertical space available.</p>

<p>This patch changes the maximum value so that it's based on a fraction of the available<br />
screen height, ensuring that tall KCMs will fill the available space as often as possible.</p>

<p>CCBUG: 398820</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>No actual changes can be observed because <tt style="background: #ebebeb; font-size: 13px;">flickable.contentHeight</tt> always evaluates to<br />
0 due to <a href="https://bugs.kde.org/show_bug.cgi?id=398820" class="remarkup-link" target="_blank" rel="noreferrer">https://bugs.kde.org/show_bug.cgi?id=398820</a> and I haven't yet figured out the<br />
fix for that issue. But once that's fixed, SimpleKCM KCMs will have more sensible<br />
default heights when opened in kcmshell.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R296 KDeclarative</div></div></div><br /><div><strong>BRANCH</strong><div><div>simplekcm-better-maximum-height (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D20283">https://phabricator.kde.org/D20283</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/qmlcontrols/kcmcontrols/qml/SimpleKCM.qml</div></div></div><br /><div><strong>To: </strong>ngraham, Plasma, mart<br /><strong>Cc: </strong>kde-frameworks-devel, michaelh, ngraham, bruns<br /></div>