From 4e539188e0e8e8ae3caca30e081f78ee6875f7e9 Mon Sep 17 00:00:00 2001
From: IAFEnvoy <83523430+IAFEnvoy@users.noreply.github.com>
Date: Tue, 29 Aug 2023 06:12:10 +0800
Subject: [PATCH] Update window.mdx (#2859)
---
website/docs/reference/runtime/window.mdx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/website/docs/reference/runtime/window.mdx b/website/docs/reference/runtime/window.mdx
index 3719be554..d25725565 100644
--- a/website/docs/reference/runtime/window.mdx
+++ b/website/docs/reference/runtime/window.mdx
@@ -117,7 +117,7 @@ JS: `WindowIsNormal() bool`
Sets the width and height of the window.
Go: `WindowSetSize(ctx context.Context, width int, height int)`
-JS: `WindowSetSize(size: Size)`
+JS: `WindowSetSize(width: number, height: number)`
### WindowGetSize
@@ -134,7 +134,7 @@ Will resize the window if the window is currently smaller than the given dimensi
Setting a size of `0,0` will disable this constraint.
Go: `WindowSetMinSize(ctx context.Context, width int, height int)`
-JS: `WindowSetMinSize(size: Size)`
+JS: `WindowSetMinSize(width: number, height: number)`
### WindowSetMaxSize
@@ -144,7 +144,7 @@ Will resize the window if the window is currently larger than the given dimensio
Setting a size of `0,0` will disable this constraint.
Go: `WindowSetMaxSize(ctx context.Context, width int, height int)`
-JS: `WindowSetMaxSize(size: Size)`
+JS: `WindowSetMaxSize(width: number, height: number)`
### WindowSetAlwaysOnTop
@@ -158,7 +158,7 @@ JS: `WindowSetAlwaysOnTop(b: Boolen)`
Sets the window position relative to the monitor the window is currently on.
Go: `WindowSetPosition(ctx context.Context, x int, y int)`
-JS: `WindowSetPosition(position: Position)`
+JS: `WindowSetPosition(x: number, y: number)`
### WindowGetPosition