Fix window not draggable
This commit is contained in:
parent
270976aa44
commit
29715462f8
@ -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
|
||||||
)
|
)
|
||||||
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user