From 29715462f81f9eda19422e7aeb49604259c497a3 Mon Sep 17 00:00:00 2001 From: david-swift Date: Fri, 1 Nov 2024 08:42:48 +0100 Subject: [PATCH] Fix window not draggable --- Sources/Core/Window/Window.swift | 2 +- Sources/Demo/Demo.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Core/Window/Window.swift b/Sources/Core/Window/Window.swift index 797ad44..a246a0b 100644 --- a/Sources/Core/Window/Window.swift +++ b/Sources/Core/Window/Window.swift @@ -61,7 +61,7 @@ public struct Window: WinUISceneElement { } } .titleBar(), - height: customTitle ? 48 : 1, + height: customTitle ? 48 : 16, margin: (48, 0, 0, 0), verticalAlignment: .top ) diff --git a/Sources/Demo/Demo.swift b/Sources/Demo/Demo.swift index 7c62c6e..778612d 100644 --- a/Sources/Demo/Demo.swift +++ b/Sources/Demo/Demo.swift @@ -22,7 +22,7 @@ struct Demo: App { Window("Demo", id: "main") { _ in ContentView(app: app) } - .extendContentIntoTitleBar(showTitle: false) + .extendContentIntoTitleBar() .frame(width: $width, height: $height) }