Skip to content

Commit

Permalink
Update options.mdx (#3013)
Browse files Browse the repository at this point in the history
Change the ZoomFactor and IsZoomControlEnabled in the document to the location of the new version
  • Loading branch information
biuaxia authored Oct 30, 2023
1 parent b328f60 commit 0533d2e
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions website/versioned_docs/version-v2.6.0/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 @@ -82,7 +80,9 @@ func main() {
OnSuspend func()
// OnResume is called when Windows resumes from low power mode
OnResume func(),
WebviewGpuDisabled: false,
WebviewGpuDisabled: false,
ZoomFactor: 1.0,
IsZoomControlEnabled: false,
},
Mac: &mac.Options{
TitleBar: &mac.TitleBar{
Expand Down Expand Up @@ -457,21 +457,6 @@ services of Apple and Microsoft.
Name: EnableFraudulentWebsiteDetection<br/>
Type: `bool`

### ZoomFactor

Name: ZoomFactor<br/>
Type: `float64`

This defines the zoom factor for the WebView2. This is the option matching the Edge user activated zoom in or out.

### IsZoomControlEnabled

Name: IsZoomControlEnabled<br/>
Type: `bool`

This enables the zoom factor to be changed by the user. Please note that the zoom factor can be set in the options while
disallowing the user to change it at runtime (f.e. for a kiosk application or similar).

### Bind

A slice of struct instances defining methods that need to be bound to the frontend.
Expand Down Expand Up @@ -687,6 +672,21 @@ Setting this to `true` will disable GPU hardware acceleration for the webview.
Name: WebviewGpuIsDisabled<br/>
Type: `bool`

#### ZoomFactor

Name: ZoomFactor<br/>
Type: `float64`

This defines the zoom factor for the WebView2. This is the option matching the Edge user activated zoom in or out.

#### IsZoomControlEnabled

Name: IsZoomControlEnabled<br/>
Type: `bool`

This enables the zoom factor to be changed by the user. Please note that the zoom factor can be set in the options while
disallowing the user to change it at runtime (f.e. for a kiosk application or similar).

### Mac

This defines [Mac specific options](#mac).
Expand Down

0 comments on commit 0533d2e

Please sign in to comment.