diff options
Diffstat (limited to 'basicsuite/ebike-ui/StatsBox.qml')
-rw-r--r-- | basicsuite/ebike-ui/StatsBox.qml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/basicsuite/ebike-ui/StatsBox.qml b/basicsuite/ebike-ui/StatsBox.qml index 76254db..62c48bd 100644 --- a/basicsuite/ebike-ui/StatsBox.qml +++ b/basicsuite/ebike-ui/StatsBox.qml @@ -42,8 +42,8 @@ import "./BikeStyle" // Top-left corner, stats Item { - width: root.width * 0.425 - height: root.height * 0.45 + width: parent.width * 0.425 + height: parent.height * 0.45 property real imageMargin: Math.min(width, height) * 0.3 Image { @@ -62,6 +62,7 @@ Item { Text { id: tripText + clip: clipDynamicText color: Colors.distanceText anchors { bottom: tripIcon.verticalCenter @@ -108,6 +109,7 @@ Item { Text { id: calText + clip: clipDynamicText color: Colors.distanceText anchors { bottom: calIcon.verticalCenter |