Remove Layout.minimumWidth from Button and ToolButton
This fixes non-square buttons in plasma-pa.
This commit is contained in:
parent
4980e4e985
commit
0f96187bfa
@ -19,8 +19,6 @@ T.Button {
|
|||||||
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
|
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
|
||||||
implicitContentHeight + topPadding + bottomPadding)
|
implicitContentHeight + topPadding + bottomPadding)
|
||||||
|
|
||||||
Layout.minimumWidth: contentItem.implicitWidth + leftPadding + rightPadding
|
|
||||||
|
|
||||||
leftPadding: background.leftMargin
|
leftPadding: background.leftMargin
|
||||||
topPadding: background.topMargin
|
topPadding: background.topMargin
|
||||||
rightPadding: background.rightMargin
|
rightPadding: background.rightMargin
|
||||||
|
@ -19,8 +19,6 @@ T.ToolButton {
|
|||||||
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
|
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
|
||||||
implicitContentHeight + topPadding + bottomPadding)
|
implicitContentHeight + topPadding + bottomPadding)
|
||||||
|
|
||||||
Layout.minimumWidth: contentItem.implicitWidth + leftPadding + rightPadding
|
|
||||||
|
|
||||||
leftPadding: background.leftMargin
|
leftPadding: background.leftMargin
|
||||||
topPadding: background.topMargin
|
topPadding: background.topMargin
|
||||||
rightPadding: background.rightMargin
|
rightPadding: background.rightMargin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user