Fix window not draggable
Some checks failed
SwiftLint / SwiftLint (push) Successful in 4s
Deploy Docs / publish (push) Has been cancelled

This commit is contained in:
david-swift 2024-11-01 08:42:48 +01:00
parent 270976aa44
commit 29715462f8
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ public struct Window: WinUISceneElement {
} }
} }
.titleBar(), .titleBar(),
height: customTitle ? 48 : 1, height: customTitle ? 48 : 16,
margin: (48, 0, 0, 0), margin: (48, 0, 0, 0),
verticalAlignment: .top verticalAlignment: .top
) )

View File

@ -22,7 +22,7 @@ struct Demo: App {
Window("Demo", id: "main") { _ in Window("Demo", id: "main") { _ in
ContentView(app: app) ContentView(app: app)
} }
.extendContentIntoTitleBar(showTitle: false) .extendContentIntoTitleBar()
.frame(width: $width, height: $height) .frame(width: $width, height: $height)
} }