Commit 2a9f7b2a authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

applets/fifteenPuzzle: fix wrong default size of fullRepresentation

parent 804faed5
Pipeline #210926 passed with stage
in 1 minute and 44 seconds
......@@ -15,8 +15,8 @@ import org.kde.plasma.plasmoid 2.0
Item {
id: main
Layout.minimumWidth: Math.max(boardSize * 10, controlsRow.width)
Layout.preferredWidth: Math.max(boardSize * 10, controlsRow.width)
Layout.preferredWidth: Math.max(boardSize * 50, controlsRow.width)
Layout.preferredHeight: boardSize * 50 + controlsRow.height
readonly property int boardSize: Plasmoid.configuration.boardSize
property Component piece: Piece {}
......
......@@ -17,14 +17,8 @@ import org.kde.plasma.private.fifteenpuzzle 0.1 as Private
Item {
id: root
Plasmoid.switchWidth: Layout.minimumWidth - 20
Plasmoid.switchHeight: Layout.minimumHeight - 20
Layout.minimumWidth: width
Layout.minimumHeight: height
width: PlasmaCore.Units.gridUnit * 16
height: PlasmaCore.Units.gridUnit * 16
Plasmoid.switchWidth: PlasmaCore.Units.gridUnit * 16 - 20
Plasmoid.switchHeight: Plasmoid.switchWidth
Plasmoid.preferredRepresentation: Plasmoid.fullRepresentation
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment