Skip to content

Commit 176eb0e

Browse files
committed
Merge pull request #58 from andrey-fomin/types-in-document-and-screen
Change types of some methods in Document and Screen
2 parents 123aea4 + 57d2c9f commit 176eb0e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2577,7 +2577,7 @@ class Document extends Node with NodeSelector with DocumentEvent with ParentNode
25772577
*
25782578
* MDN
25792579
*/
2580-
def elementFromPoint(x: Int, y: Int): Element = ???
2580+
def elementFromPoint(x: Double, y: Double): Element = ???
25812581

25822582
/**
25832583
* Adopts a node from an external document. The node and its subtree is removed from the
@@ -3213,21 +3213,21 @@ class Screen extends js.Object {
32133213
*
32143214
* MDN
32153215
*/
3216-
def width: Int = ???
3216+
def width: Double = ???
32173217

32183218
/**
32193219
* Returns the amount of vertical space available to the window on the screen.
32203220
*
32213221
* MDN
32223222
*/
3223-
def availHeight: Int = ???
3223+
def availHeight: Double = ???
32243224

32253225
/**
32263226
* Returns the height of the screen in pixels.
32273227
*
32283228
* MDN
32293229
*/
3230-
def height: Int = ???
3230+
def height: Double = ???
32313231

32323232
/**
32333233
* Returns the color depth of the screen.
@@ -3241,7 +3241,7 @@ class Screen extends js.Object {
32413241
*
32423242
* MDN
32433243
*/
3244-
def availWidth: Int = ???
3244+
def availWidth: Double = ???
32453245

32463246
/**
32473247
* Returns the bit depth of the screen.

0 commit comments

Comments
 (0)