We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32f5489 commit 7106107Copy full SHA for 7106107
src/widgets/ot_tip.eliom
@@ -47,11 +47,7 @@ let%client display ?(container_a = [a_class ["ot-tip-container"]])
47
@@ Js.Optdef.get Dom_html.window##.innerHeight
48
@@ fun () -> Dom_html.document##.documentElement##.clientHeight
49
in
50
- let d_width =
51
- float
52
- @@ Js.Optdef.get Dom_html.window##.innerWidth
53
- @@ fun () -> Dom_html.document##.documentElement##.clientWidth
54
- in
+ let d_width = float Dom_html.document##.documentElement##.clientWidth in
55
let o_bounds = origin##getBoundingClientRect in
56
let o_left = o_bounds##.left in
57
let o_right = o_bounds##.right in
0 commit comments