<table><tr><td style="">ahiemstra created this revision.<br />ahiemstra added a reviewer: Plasma.<br />Herald added a project: Plasma.<br />Herald added a subscriber: plasma-devel.<br />ahiemstra 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/D26530">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This ensures the scrollbar of a ScrollView do not overlap the ScrollView's<br />
contents. It effectively makes ScrollView's behaviour the same as all<br />
widget views, which also do not overlap the contents.</p>
<p>It also removes the need for a lot of workarounds in applications and other<br />
places to fix the overlapping problem.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Tested with this QML:</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">import QtQuick 2.12
import QtQuick.Controls 2.12
import org.kde.kirigami 2.11 as Kirigami
Kirigami.ApplicationWindow {
pageStack.initialPage: Kirigami.Page {
leftPadding: 0
rightPadding: 0
topPadding: 0
bottomPadding: 0
ScrollView {
anchors.fill: parent
ListView {
model: 100
delegate: ItemDelegate {
width: ListView.view.width
text: modelData
}
}
}
}
}</pre></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R858 Qt Quick Controls 2: Desktop Style</div></div></div><br /><div><strong>BRANCH</strong><div><div>scrollview_scrollbar_spacing</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D26530">https://phabricator.kde.org/D26530</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>org.kde.desktop/ScrollView.qml</div></div></div><br /><div><strong>To: </strong>ahiemstra, Plasma<br /><strong>Cc: </strong>plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart<br /></div>