diff --git a/src/declarativeimports/plasmacomponents/qml/Button.qml b/src/declarativeimports/plasmacomponents/qml/Button.qml index f2c0afea7..94799e94c 100644 --- a/src/declarativeimports/plasmacomponents/qml/Button.qml +++ b/src/declarativeimports/plasmacomponents/qml/Button.qml @@ -114,7 +114,7 @@ Item { } } - implicitHeight: Math.max(theme.mSize(theme.defaultFont).height*1.6, minimumHeight) + implicitHeight: Math.floor(Math.max(theme.mSize(theme.defaultFont).height*1.6, minimumHeight)) // TODO: needs to define if there will be specific graphics for // disabled buttons diff --git a/src/declarativeimports/plasmacomponents/qml/ProgressBar.qml b/src/declarativeimports/plasmacomponents/qml/ProgressBar.qml index 9fb19e165..b85c100f3 100644 --- a/src/declarativeimports/plasmacomponents/qml/ProgressBar.qml +++ b/src/declarativeimports/plasmacomponents/qml/ProgressBar.qml @@ -61,8 +61,8 @@ Item { */ property int orientation: Qt.Horizontal - width: units.gridUnit * (background._isVertical ? 1.6 : 10) - height: units.gridUnit * (background._isVertical ? 10 : 1.6) + width: Math.floor(units.gridUnit * (background._isVertical ? 1.6 : 10)) + height: Math.floor(units.gridUnit * (background._isVertical ? 10 : 1.6)) opacity: enabled ? 1.0 : 0.5 PlasmaComponents.RangeModel {