5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 14:10:25 +08:00

Update options.mdx (#3013)

Change the ZoomFactor and IsZoomControlEnabled in the document to the location of the new version
This commit is contained in:
biuaxia 2023-10-30 20:54:03 +08:00 committed by GitHub
parent b328f60172
commit 0533d2e208
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,8 +53,6 @@ func main() {
CSSDragValue: "drag",
EnableDefaultContextMenu: false,
EnableFraudulentWebsiteDetection: false,
ZoomFactor: 1.0,
IsZoomControlEnabled: false,
Bind: []interface{}{
app,
},
@ -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{
@ -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.
@ -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).