From 12ca69deda83fae395da21d2021e418845731937 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 12 Jan 2012 20:23:03 +0100 Subject: [PATCH] Ensure that borders have at least a size of 0 Prevents cropping of windows with tiny borders. BUG: 257428 --- clients/aurorae/src/qml/aurorae.qml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/clients/aurorae/src/qml/aurorae.qml b/clients/aurorae/src/qml/aurorae.qml index 8bc42f8674..332e62fe3e 100644 --- a/clients/aurorae/src/qml/aurorae.qml +++ b/clients/aurorae/src/qml/aurorae.qml @@ -30,14 +30,14 @@ Decoration { } } id: root - borderLeft: auroraeTheme.borderLeft - borderRight: auroraeTheme.borderRight - borderTop: auroraeTheme.borderTop - borderBottom: auroraeTheme.borderBottom - borderLeftMaximized: auroraeTheme.borderLeftMaximized - borderRightMaximized: auroraeTheme.borderRightMaximized - borderBottomMaximized: auroraeTheme.borderBottomMaximized - borderTopMaximized: auroraeTheme.borderTopMaximized + borderLeft: Math.max(0, auroraeTheme.borderLeft) + borderRight: Math.max(0, auroraeTheme.borderRight) + borderTop: Math.max(0, auroraeTheme.borderTop) + borderBottom: Math.max(0, auroraeTheme.borderBottom) + borderLeftMaximized: Math.max(0, auroraeTheme.borderLeftMaximized) + borderRightMaximized: Math.max(0, auroraeTheme.borderRightMaximized) + borderBottomMaximized: Math.max(0, auroraeTheme.borderBottomMaximized) + borderTopMaximized: Math.max(0, auroraeTheme.borderTopMaximized) paddingLeft: auroraeTheme.paddingLeft paddingRight: auroraeTheme.paddingRight paddingBottom: auroraeTheme.paddingBottom