on xenial help sign in
we need to adjust the openeffect and not the contenty too when the view is bigger than the content
57ffa2cAlbert Astals
qml/Dash/PreviewListView.qml+5−2
@@ -115,8 +115,11 @@ Item {
115 if (newContentY < 0) {
115 if (newContentY < 0) {
116 effectAdjust += newContentY;
116 effectAdjust += newContentY;
117 newContentY = 0;
117 newContentY = 0;
118− }
118+ } else if (categoryView.contentHeight < categoryView.height) {
119+ // We can't change contentY if the content is smaller than the view, so adjust effect position
120+ effectAdjust += newContentY;
121+ newContentY = 0;
119− if ((categoryView.contentHeight > categoryView.height) && (newContentY > categoryView.contentHeight - categoryView.height)) {
122+ } else if (newContentY > categoryView.contentHeight - categoryView.height) {
120 effectAdjust += -(categoryView.contentHeight - categoryView.height) + newContentY
123 effectAdjust += -(categoryView.contentHeight - categoryView.height) + newContentY
121 newContentY = categoryView.contentHeight - categoryView.height;
124 newContentY = categoryView.contentHeight - categoryView.height;
122 }
125 }