on xenial help sign in
Call the dash sizing hack when units.gu changes

Approved by: Gerry Boland

commitcfe5828fe904b22feed5b877c7476f6043d4c9e7 authorMichael Zanetti <michael.zanetti@canonical.com> dateFri 29 Apr 2016, 20:07 (10 years ago) parentc1a1961bd15534
1 file changed+5
qml/Dash/GenericScopeView.qml+5
qml/Dash/GenericScopeView.qml+5
@@ -360,6 +360,11 @@ FocusScope {
360360 scopeView.enableHeightBehaviorOnNextCreation = item.enableHeightBehaviorOnNextCreation;
361361 }
362362 }
363+ // FIXME: directly connecting to onUnitsChanged cause a compile error:
364+ // Cannot assign to non-existent property "onUnitsChanged"
365+ // Until the units object is reworked to properly do all we need, let's go through a intermediate property
366+ property int pxpgu: units.gu(1);
367+ onPxpguChanged: clickScopeSizingHacks();
363368
364369 function clickScopeSizingHacks() {
365370 if (scope && scope.id === "clickscope" &&