on xenial help sign in
We already have a seeAllButton property.
a3c10cbMichał Sawicz
qml/Dash/GenericScopeView.qml+3−3
@@ -174,7 +174,7 @@ FocusScope {
174
174
175 var animate = false;
175 var animate = false;
176 if (!subPageLoader.open) {
176 if (!subPageLoader.open) {
177− var animateShrinking = !shouldExpand && baseItem.y + baseItem.item.collapsedHeight + baseItem.seeAll.height < categoryView.height;
177+ var animateShrinking = !shouldExpand && baseItem.y + baseItem.item.collapsedHeight + baseItem.seeAllButton.height < categoryView.height;
178 var animateGrowing = shouldExpand && baseItem.y + baseItem.height < categoryView.height;
178 var animateGrowing = shouldExpand && baseItem.y + baseItem.height < categoryView.height;
179 animate = shrinkingAny || animateShrinking || animateGrowing;
179 animate = shrinkingAny || animateShrinking || animateGrowing;
180 }
180 }
@@ -186,7 +186,7 @@ FocusScope {
186
186
187 if (shouldExpand && !subPageLoader.open) {
187 if (shouldExpand && !subPageLoader.open) {
188 if (!shrinkingAny) {
188 if (!shrinkingAny) {
189− categoryView.maximizeVisibleArea(firstCreated + i, baseItem.item.expandedHeight + baseItem.seeAll.height);
189+ categoryView.maximizeVisibleArea(firstCreated + i, baseItem.item.expandedHeight + baseItem.seeAllButton.height);
190 } else {
190 } else {
191 // If the space that shrkinking is smaller than the one we need to grow we'll call maximizeVisibleArea
191 // If the space that shrkinking is smaller than the one we need to grow we'll call maximizeVisibleArea
192 // after the shrink/grow animation ends
192 // after the shrink/grow animation ends
@@ -275,7 +275,7 @@ FocusScope {
275 for (var i = 0; i < categoryView.createdItemCount(); ++i) {
275 for (var i = 0; i < categoryView.createdItemCount(); ++i) {
276 var baseItem = categoryView.item(firstCreated + i);
276 var baseItem = categoryView.item(firstCreated + i);
277 if (baseItem.category === categoryView.expandedCategoryId) {
277 if (baseItem.category === categoryView.expandedCategoryId) {
278− categoryView.maximizeVisibleArea(firstCreated + i, baseItem.item.expandedHeight + baseItem.seeAll.height);
278+ categoryView.maximizeVisibleArea(firstCreated + i, baseItem.item.expandedHeight + baseItem.seeAllButton.height);
279 break;
279 break;
280 }
280 }
281 }
281 }