1 diff --git a/src/js_misc.ml b/src/js_misc.ml
2 index 65f7b44..bfef103 100644
5 @@ -28,17 +28,11 @@ type rows_or_columns =
6 [@@deriving sexp, bin_io, variants, compare]
10 - Dom_html.window##.innerHeight
11 - (fun () -> Dom_html.document##.documentElement##.clientHeight)
13 + Dom_html.window##.innerHeight
18 - Dom_html.window##.innerWidth
19 - (fun () -> Dom_html.document##.documentElement##.clientWidth)
21 + Dom_html.window##.innerWidth
24 let element_is_in_viewport (elt : Dom_html.element Js.t) =