diff --git a/website/docs/reference/options.mdx b/website/docs/reference/options.mdx index d9a1ca4fc4a..26fb1afac27 100644 --- a/website/docs/reference/options.mdx +++ b/website/docs/reference/options.mdx @@ -53,8 +53,6 @@ func main() { CSSDragValue: "drag", EnableDefaultContextMenu: false, EnableFraudulentWebsiteDetection: false, - ZoomFactor: 1.0, - IsZoomControlEnabled: false, Bind: []interface{}{ app, }, @@ -84,12 +82,17 @@ func main() { LightModeTitleText: windows.RGB(20, 20, 20), LightModeBorder: windows.RGB(200, 200, 200), }, + // ZoomFactor is the zoom factor for the WebView2. This is the option matching the Edge user activated zoom in or out. + ZoomFactor: float64, + // IsZoomControlEnabled enables the zoom factor to be changed by the user. + IsZoomControlEnabled: bool, // User messages that can be customised - Messages *windows.Messages + Messages: *windows.Messages // OnSuspend is called when Windows enters low power mode - OnSuspend func() + OnSuspend: func() // OnResume is called when Windows resumes from low power mode - OnResume func(), + OnResume: func(), + // Disable GPU hardware acceleration for the webview WebviewGpuDisabled: false, }, Mac: &mac.Options{ diff --git a/website/src/pages/changelog.mdx b/website/src/pages/changelog.mdx index f8461df6289..c75a762fa68 100644 --- a/website/src/pages/changelog.mdx +++ b/website/src/pages/changelog.mdx @@ -21,6 +21,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Remove quarantine attribute on macOS binaries. Changed by @leaanthony in [PR](https://github.com/wailsapp/wails/pull/3118) - Added documentation for a common GStreamer error on Linux systems. Changed by [@mkwsnyder](https://github.com/mkwsnyder) in [PR](https://github.com/wailsapp/wails/pull/3134) +### Fixed +- Docs for IsZoomControlEnabled and ZoomFactor. Fixed by @leaanthony in [PR](https://github.com/wailsapp/wails/pull/3137) ## v2.7.1 - 2023-12-10