diff options
Diffstat (limited to 'framework')
-rw-r--r-- | framework/qml/Units.qml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/qml/Units.qml b/framework/qml/Units.qml index 6d66bf5c..d583c87b 100644 --- a/framework/qml/Units.qml +++ b/framework/qml/Units.qml | |||
@@ -23,7 +23,8 @@ import QtQuick 2.7 | |||
23 | import org.kube.framework 1.0 as Kube | 23 | import org.kube.framework 1.0 as Kube |
24 | 24 | ||
25 | Item { | 25 | Item { |
26 | property int gridUnit: fontMetrics.height | 26 | //Ensure the gridUnit is divisble by 4 without remainder, otherwise we'll end up with alignment issues |
27 | property int gridUnit: Math.ceil(fontMetrics.height / 4) * 4 | ||
27 | property int smallSpacing: gridUnit/4 | 28 | property int smallSpacing: gridUnit/4 |
28 | property int largeSpacing: gridUnit | 29 | property int largeSpacing: gridUnit |
29 | 30 | ||