Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / ocaml-modules / janestreet / bonsai_jsoo_4_0.patch
blobe658ba05ca4c0882be85fcda7be77cde8c73eec6
1 diff --git a/web_ui/element_size_hooks/visibility_tracker.ml b/web_ui/element_size_hooks/visibility_tracker.ml
2 index 2e5dbe0..61df433 100644
3 --- a/web_ui/element_size_hooks/visibility_tracker.ml
4 +++ b/web_ui/element_size_hooks/visibility_tracker.ml
5 @@ -23,8 +23,6 @@ let get_conservative_vis_bounds (element : Dom_html.element Js.t) : Bounds.t opt
6 and client_height = client_bounds##.height
7 and window_height = Dom_html.window##.innerHeight
8 and window_width = Dom_html.window##.innerWidth in
9 - let%bind.Option window_height = Js.Optdef.to_option window_height in
10 - let%bind.Option window_width = Js.Optdef.to_option window_width in
11 let window_height = Float.of_int window_height
12 and window_width = Float.of_int window_width
13 and client_width = Js.Optdef.get client_width (Fn.const 0.0)