Skip to content

Commit 91bf511

Browse files
committed
Add resizeTo and resizeBy to Window
1 parent 208e56f commit 91bf511

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/main/scala/org/scalajs/dom/raw/lib.scala

+14
Original file line numberDiff line numberDiff line change
@@ -2704,6 +2704,20 @@ class Window
27042704
* MDN
27052705
*/
27062706
def moveBy(deltaX: Int, deltaY: Int): Unit = js.native
2707+
2708+
/**
2709+
* Dynamically resizes window.
2710+
*
2711+
* MDN
2712+
*/
2713+
def resizeTo(width: Int, height: Int): Unit = js.native
2714+
2715+
/**
2716+
* Resizes the current window by a certain amount.
2717+
*
2718+
* MDN
2719+
*/
2720+
def resizeBy(deltaX: Int, deltaY: Int): Unit = js.native
27072721
}
27082722

27092723
/**

0 commit comments

Comments
 (0)