Fix window not draggable
This commit is contained in:
parent
270976aa44
commit
29715462f8
@ -61,7 +61,7 @@ public struct Window: WinUISceneElement {
|
||||
}
|
||||
}
|
||||
.titleBar(),
|
||||
height: customTitle ? 48 : 1,
|
||||
height: customTitle ? 48 : 16,
|
||||
margin: (48, 0, 0, 0),
|
||||
verticalAlignment: .top
|
||||
)
|
||||
|
@ -22,7 +22,7 @@ struct Demo: App {
|
||||
Window("Demo", id: "main") { _ in
|
||||
ContentView(app: app)
|
||||
}
|
||||
.extendContentIntoTitleBar(showTitle: false)
|
||||
.extendContentIntoTitleBar()
|
||||
.frame(width: $width, height: $height)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user