Ensure that titleHeight is at least height of buttons

Required to properly lay out the title in case of vertical or
bottom alignment.

BUG: 304822
FIXED-IN: 4.9.1
REVIEW: 105937
remotes/origin/Plasma/5.0
Martin Gräßlin 14 years ago
parent 23f2de009b
commit fb01e4ab8c
  1. 2
      clients/aurorae/src/qml/aurorae.qml

@ -141,7 +141,7 @@ Decoration {
horizontalAlignment: auroraeTheme.horizontalAlignment
verticalAlignment: auroraeTheme.verticalAlignment
elide: Text.ElideRight
height: auroraeTheme.titleHeight
height: Math.max(auroraeTheme.titleHeight, auroraeTheme.buttonHeight * auroraeTheme.buttonSizeFactor)
color: decoration.active ? auroraeTheme.activeTextColor : auroraeTheme.inactiveTextColor
font: decoration.active ? options.activeTitleFont : options.inactiveTitleFont
anchors {

Loading…
Cancel
Save