Skip to content

Commit

Permalink
Fixed IsZoomControlEnabled and ZoomFactor option docs (#3137)
Browse files Browse the repository at this point in the history
* Fixed IsZoomControlEnabled and ZoomFactor options

* Update changelog
  • Loading branch information
leaanthony authored Dec 17, 2023
1 parent 97e60e1 commit 5c1d62b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 8 additions & 5 deletions website/docs/reference/options.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ func main() {
CSSDragValue: "drag",
EnableDefaultContextMenu: false,
EnableFraudulentWebsiteDetection: false,
ZoomFactor: 1.0,
IsZoomControlEnabled: false,
Bind: []interface{}{
app,
},
Expand Down Expand Up @@ -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{
Expand Down
2 changes: 2 additions & 0 deletions website/src/pages/changelog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5c1d62b

Please sign in to comment.