about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/janestreet/bonsai_jsoo_4_0.patch
diff options
context:
space:
mode:
authorAaron L. Zeng <me@bcc32.com>2022-05-23 01:18:37 -0400
committerAaron L. Zeng <me@bcc32.com>2022-07-07 00:32:11 -0400
commit4f6ddfdd23f0c3571af65465c8937b2640f988ff (patch)
tree7b5c2d29211f7686b3aa1849bed8263b30e7b456 /pkgs/development/ocaml-modules/janestreet/bonsai_jsoo_4_0.patch
parent99b11e4c97dc686a823f8bc5aeac32a90dd7891b (diff)
Add Jane Street ocaml packages version 0.15
- ocamlPackages.tls*: 0.15.2 -> 0.15.3
- ocamlPackages.bistro: unstable-2021-11-13 -> unstable-2022-05-07
- ocamlPackages.phylogenetics: 0.1.0 -> unstable-2022-05-06
Diffstat (limited to 'pkgs/development/ocaml-modules/janestreet/bonsai_jsoo_4_0.patch')
-rw-r--r--pkgs/development/ocaml-modules/janestreet/bonsai_jsoo_4_0.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/janestreet/bonsai_jsoo_4_0.patch b/pkgs/development/ocaml-modules/janestreet/bonsai_jsoo_4_0.patch
new file mode 100644
index 0000000000000..e658ba05ca4c0
--- /dev/null
+++ b/pkgs/development/ocaml-modules/janestreet/bonsai_jsoo_4_0.patch
@@ -0,0 +1,13 @@
+diff --git a/web_ui/element_size_hooks/visibility_tracker.ml b/web_ui/element_size_hooks/visibility_tracker.ml
+index 2e5dbe0..61df433 100644
+--- a/web_ui/element_size_hooks/visibility_tracker.ml
++++ b/web_ui/element_size_hooks/visibility_tracker.ml
+@@ -23,8 +23,6 @@ let get_conservative_vis_bounds (element : Dom_html.element Js.t) : Bounds.t opt
+   and client_height = client_bounds##.height
+   and window_height = Dom_html.window##.innerHeight
+   and window_width = Dom_html.window##.innerWidth in
+-  let%bind.Option window_height = Js.Optdef.to_option window_height in
+-  let%bind.Option window_width = Js.Optdef.to_option window_width in
+   let window_height = Float.of_int window_height
+   and window_width = Float.of_int window_width
+   and client_width = Js.Optdef.get client_width (Fn.const 0.0)