From 3c278ed06c5ebe2977a779a997999bcf28d79246 Mon Sep 17 00:00:00 2001 From: Parvesh Monu Date: Thu, 11 May 2023 19:57:37 +0530 Subject: [PATCH] fix window height sub leak (#15878) --- src/status_im2/contexts/onboarding/common/background/view.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/status_im2/contexts/onboarding/common/background/view.cljs b/src/status_im2/contexts/onboarding/common/background/view.cljs index 13ab3565fa..3830b0b5ba 100644 --- a/src/status_im2/contexts/onboarding/common/background/view.cljs +++ b/src/status_im2/contexts/onboarding/common/background/view.cljs @@ -34,7 +34,7 @@ (defn store-screen-height [evt] - (let [window-height (rf/sub [:dimensions/window-height]) + (let [window-height (:height (rn/get-window)) height (or (oget evt "nativeEvent" "layout" "height") 0) width (or (oget evt "nativeEvent" "layout" "width") 0)] ;; Layout height calculation