Ensure that borders have at least a size of 0
Prevents cropping of windows with tiny borders. BUG: 257428
This commit is contained in:
parent
cb47db887c
commit
12ca69deda
1 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue