@@ -42,7 +42,7 @@ Item {
42 top: previewListView.bottom
42 top: previewListView.bottom
43 left: parent.left
43 left: parent.left
44 leftMargin: previewListView.categoryDelegate !== undefined && previewListView.categoryDelegate.currentItem ?
44 leftMargin: previewListView.categoryDelegate !== undefined && previewListView.categoryDelegate.currentItem ?
45− previewListView.categoryDelegate.currentItem.center + (-width + margins) / 2 : 0
45+ previewListView.categoryDelegate.currentItem.x + previewListView.categoryDelegate.currentItem.width / 2 + (-width + margins) / 2 : 0
47 Behavior on leftMargin {
47 Behavior on leftMargin {
48 SmoothedAnimation {
48 SmoothedAnimation {
@@ -116,7 +116,7 @@ Item {
116 effectAdjust += newContentY;
116 effectAdjust += newContentY;
117 newContentY = 0;
117 newContentY = 0;
119− if (newContentY > Math.max(0, categoryView.contentHeight - categoryView.height)) {
119+ if ((categoryView.contentHeight > categoryView.height) && (newContentY > categoryView.contentHeight - categoryView.height)) {
120 effectAdjust += -(categoryView.contentHeight - categoryView.height) + newContentY
120 effectAdjust += -(categoryView.contentHeight - categoryView.height) + newContentY
121 newContentY = categoryView.contentHeight - categoryView.height;
121 newContentY = categoryView.contentHeight - categoryView.height;