on xenial help sign in
we need to adjust the openeffect and not the contenty too when the view is bigger than the content
commit57ffa2c23661a9977f18a4f01986021998142cb6 authorAlbert Astals <albert.astals@canonical.com> dateFri 14 Feb 2014, 13:20 (13 years ago) parent1aff3e1
1 file changed+5−2
qml/Dash/PreviewListView.qml+5−2
qml/Dash/PreviewListView.qml+5−2
@@ -115,8 +115,11 @@ Item {
115115 if (newContentY < 0) {
116116 effectAdjust += newContentY;
117117 newContentY = 0;
118− }
119− if ((categoryView.contentHeight > categoryView.height) && (newContentY > categoryView.contentHeight - categoryView.height)) {
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;
122+ } else if (newContentY > categoryView.contentHeight - categoryView.height) {
120123 effectAdjust += -(categoryView.contentHeight - categoryView.height) + newContentY
121124 newContentY = categoryView.contentHeight - categoryView.height;
122125 }