mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-03 02:01:01 +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:
parent
b328f60172
commit
0533d2e208
@ -53,8 +53,6 @@ func main() {
|
|||||||
CSSDragValue: "drag",
|
CSSDragValue: "drag",
|
||||||
EnableDefaultContextMenu: false,
|
EnableDefaultContextMenu: false,
|
||||||
EnableFraudulentWebsiteDetection: false,
|
EnableFraudulentWebsiteDetection: false,
|
||||||
ZoomFactor: 1.0,
|
|
||||||
IsZoomControlEnabled: false,
|
|
||||||
Bind: []interface{}{
|
Bind: []interface{}{
|
||||||
app,
|
app,
|
||||||
},
|
},
|
||||||
@ -82,7 +80,9 @@ func main() {
|
|||||||
OnSuspend func()
|
OnSuspend func()
|
||||||
// OnResume is called when Windows resumes from low power mode
|
// OnResume is called when Windows resumes from low power mode
|
||||||
OnResume func(),
|
OnResume func(),
|
||||||
WebviewGpuDisabled: false,
|
WebviewGpuDisabled: false,
|
||||||
|
ZoomFactor: 1.0,
|
||||||
|
IsZoomControlEnabled: false,
|
||||||
},
|
},
|
||||||
Mac: &mac.Options{
|
Mac: &mac.Options{
|
||||||
TitleBar: &mac.TitleBar{
|
TitleBar: &mac.TitleBar{
|
||||||
@ -457,21 +457,6 @@ services of Apple and Microsoft.
|
|||||||
Name: EnableFraudulentWebsiteDetection<br/>
|
Name: EnableFraudulentWebsiteDetection<br/>
|
||||||
Type: `bool`
|
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
|
### Bind
|
||||||
|
|
||||||
A slice of struct instances defining methods that need to be bound to the frontend.
|
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/>
|
Name: WebviewGpuIsDisabled<br/>
|
||||||
Type: `bool`
|
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
|
### Mac
|
||||||
|
|
||||||
This defines [Mac specific options](#mac).
|
This defines [Mac specific options](#mac).
|
||||||
|
Loading…
Reference in New Issue
Block a user