Skip to content

Commit c9735a3

Browse files
anilanarjapgolly
authored andcommitted
Add resizeTo and resizeBy to Window
1 parent 27a4cbe commit c9735a3

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
@@ -2776,6 +2776,20 @@ class Window
27762776
* MDN
27772777
*/
27782778
def moveBy(deltaX: Int, deltaY: Int): Unit = js.native
2779+
2780+
/**
2781+
* Dynamically resizes window.
2782+
*
2783+
* MDN
2784+
*/
2785+
def resizeTo(width: Int, height: Int): Unit = js.native
2786+
2787+
/**
2788+
* Resizes the current window by a certain amount.
2789+
*
2790+
* MDN
2791+
*/
2792+
def resizeBy(deltaX: Int, deltaY: Int): Unit = js.native
27792793
}
27802794

27812795
/**

0 commit comments

Comments
 (0)