on xenial help sign in
Take into account the extra margin on the top when calculating the display margin
commit2d342ba184888b02fcc5eb7f28243fbf6668742b authorAlbert Astals Cid <albert.astals@canonical.com> dateTue 12 May 2015, 12:05 (11 years ago) parent1a48b18
1 file changed+1−1
qml/Dash/GenericScopeView.qml+1−1
qml/Dash/GenericScopeView.qml+1−1
@@ -425,7 +425,7 @@ FocusScope {
425425 // to the next, we set the visible range to the viewport so
426426 // items are not culled (invisible) but still use no cacheBuffer
427427 // (it will be set once the scope is the current one)
428− var displayMarginBeginning = baseItem.y;
428+ var displayMarginBeginning = baseItem.y + rendererLoader.anchors.topMargin;
429429 displayMarginBeginning = -Math.max(-displayMarginBeginning, 0);
430430 displayMarginBeginning = -Math.min(-displayMarginBeginning, baseItem.height);
431431 displayMarginBeginning = Math.round(displayMarginBeginning);