on xenial help sign in
We already have a seeAllButton property.
commita3c10cb3ceabe22a8a6f04c62f356731c33f598c authorMichał Sawicz <michal.sawicz@canonical.com> dateFri 12 Sep 2014, 13:58 (12 years ago) parentcbd3202
1 file changed+3−3
qml/Dash/GenericScopeView.qml+3−3
qml/Dash/GenericScopeView.qml+3−3
@@ -174,7 +174,7 @@ FocusScope {
174174
175175 var animate = false;
176176 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;
178178 var animateGrowing = shouldExpand && baseItem.y + baseItem.height < categoryView.height;
179179 animate = shrinkingAny || animateShrinking || animateGrowing;
180180 }
@@ -186,7 +186,7 @@ FocusScope {
186186
187187 if (shouldExpand && !subPageLoader.open) {
188188 if (!shrinkingAny) {
189− categoryView.maximizeVisibleArea(firstCreated + i, baseItem.item.expandedHeight + baseItem.seeAll.height);
189+ categoryView.maximizeVisibleArea(firstCreated + i, baseItem.item.expandedHeight + baseItem.seeAllButton.height);
190190 } else {
191191 // If the space that shrkinking is smaller than the one we need to grow we'll call maximizeVisibleArea
192192 // after the shrink/grow animation ends
@@ -275,7 +275,7 @@ FocusScope {
275275 for (var i = 0; i < categoryView.createdItemCount(); ++i) {
276276 var baseItem = categoryView.item(firstCreated + i);
277277 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);
279279 break;
280280 }
281281 }