Skip to content

Commit a66f696

Browse files
committed
Set main window margins
1 parent 8b5e3a8 commit a66f696

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main.qml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import ScratchCPP.UiComponents
77
import ScratchCPP.Render
88

99
Window {
10-
minimumWidth: layout.implicitWidth
11-
minimumHeight: layout.implicitHeight
10+
minimumWidth: layout.implicitWidth + layout.anchors.margins * 2
11+
minimumHeight: layout.implicitHeight + layout.anchors.margins * 2
1212
visible: true
1313
title: "ScratchCPP"
1414
color: Material.background
@@ -18,10 +18,10 @@ Window {
1818
ColumnLayout {
1919
id: layout
2020
anchors.fill: parent
21+
anchors.margins: 10
2122

2223
RowLayout {
2324
Layout.fillWidth: true
24-
Layout.topMargin: 10
2525

2626
CustomToolButton {
2727
icon.name: "green_flag"

0 commit comments

Comments
 (0)