<table><tr><td style="">davidre added a comment.
</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/D22827">View Revision</a></tr></table><br /><div><div><p>So the alternative approach would be something like this:</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="diff" 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);"><span style="color: #000080">diff --git a/src/qmlcontrols/kcmcontrols/qml/ScrollView.qml b/src/qmlcontrols/kcmcontrols/qml/ScrollView.qml</span>
<span style="color: #000080">index 8ef57a2..443f063 100644</span>
<span style="color: #a00000">--- a/src/qmlcontrols/kcmcontrols/qml/ScrollView.qml</span>
<span style="color: #00a000">+++ b/src/qmlcontrols/kcmcontrols/qml/ScrollView.qml</span>
<span style="color: #800080">@@ -48,14 +48,28 @@ QtControls.ScrollView {</span>
     onViewChanged: {
         view.parent = scroll;
         view.anchors.fill = view.parent;
<span style="color: #00a000">+        setMargins();</span>
     }
 
     activeFocusOnTab: false
     Kirigami.Theme.colorSet: Kirigami.Theme.View
     Kirigami.Theme.inherit: false
 
<span style="color: #a00000">-    Component.onCompleted: scroll.background.visible = true;</span>
<span style="color: #00a000">+    Component.onCompleted: {</span>
<span style="color: #00a000">+        scroll.background.visible = true;</span>
<span style="color: #00a000">+        setMargins();</span>
<span style="color: #00a000">+    }</span>
<span style="color: #00a000">+</span>
<span style="color: #00a000">+    function setMargins() {</span>
<span style="color: #00a000">+        if (view.parent.padding) {</span>
<span style="color: #00a000">+            view.anchors.padding = view.parent.padding;</span>
<span style="color: #00a000">+        } else {</span>
<span style="color: #00a000">+            view.anchors.topMargin = view.parent.topPadding;</span>
<span style="color: #00a000">+            view.anchors.leftMargin = view.parent.leftPadding;</span>
<span style="color: #00a000">+            view.anchors.bottomMargin = view.parent.bottomPadding;</span>
<span style="color: #00a000">+            view.anchors.rightMargin = view.parent.rightPadding;</span>
<span style="color: #00a000">+        }</span>
<span style="color: #00a000">+    }</span>
 
<span style="color: #a00000">-    </span>
     QtControls.ScrollBar.horizontal.visible: false
 }</pre></div>

<p>I has the same result but maybe would be more correct?</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R296 KDeclarative</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D22827">https://phabricator.kde.org/D22827</a></div></div><br /><div><strong>To: </strong>davidre, mart<br /><strong>Cc: </strong>filipf, kde-frameworks-devel, LeGast00n, sbergeron, michaelh, ngraham, bruns<br /></div>