on xenial help sign in
Call the dash sizing hack when units.gu changes
cfe5828Michael Zanetti
qml/Dash/GenericScopeView.qml+5
@@ -360,6 +360,11 @@ FocusScope {
360 scopeView.enableHeightBehaviorOnNextCreation = item.enableHeightBehaviorOnNextCreation;
360 scopeView.enableHeightBehaviorOnNextCreation = item.enableHeightBehaviorOnNextCreation;
361 }
361 }
362 }
362 }
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();
363
368
364 function clickScopeSizingHacks() {
369 function clickScopeSizingHacks() {
365 if (scope && scope.id === "clickscope" &&
370 if (scope && scope.id === "clickscope" &&