From 0d82dab5c5212ab79b920c8b0e79a1a25f33082f Mon Sep 17 00:00:00 2001 From: shivekkhurana Date: Thu, 5 Nov 2020 18:57:30 +0530 Subject: [PATCH] Fix scroll issue Signed-off-by: shivekkhurana --- .../offline_messaging_settings/views.cljs | 37 ++++++++++--------- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/src/status_im/ui/screens/offline_messaging_settings/views.cljs b/src/status_im/ui/screens/offline_messaging_settings/views.cljs index 30b071c5af..618a53d2d8 100644 --- a/src/status_im/ui/screens/offline_messaging_settings/views.cljs +++ b/src/status_im/ui/screens/offline_messaging_settings/views.cljs @@ -57,23 +57,24 @@ [{:icon :main-icons/add-circle :on-press #(re-frame/dispatch [:mailserver.ui/add-pressed])}]}] - [react/view {:style styles/switch-container} - [profile.components/settings-switch-item - {:label-kw :t/offline-messaging-use-history-nodes - :value use-mailservers? - :action-fn #(re-frame/dispatch [:mailserver.ui/use-history-switch-pressed (not use-mailservers?)])}]] - [react/view {:style styles/use-history-explanation-text-container} - [react/text {:style styles/explanation-text} - (i18n/label :t/offline-messaging-use-history-explanation)]] + [react/scroll-view + [react/view {:style styles/switch-container} + [profile.components/settings-switch-item + {:label-kw :t/offline-messaging-use-history-nodes + :value use-mailservers? + :action-fn #(re-frame/dispatch [:mailserver.ui/use-history-switch-pressed (not use-mailservers?)])}]] + [react/view {:style styles/use-history-explanation-text-container} + [react/text {:style styles/explanation-text} + (i18n/label :t/offline-messaging-use-history-explanation)]] - (when use-mailservers? - [:<> - [pinned-state preferred-mailserver-id] + (when use-mailservers? + [:<> + [pinned-state preferred-mailserver-id] - [react/text {:style styles/history-nodes-label} - (i18n/label :t/history-nodes)] - [list/flat-list {:data (vals mailservers) - :default-separator? false - :key-fn :name - :render-fn (render-row current-mailserver-id - preferred-mailserver-id)}]])])) + [react/text {:style styles/history-nodes-label} + (i18n/label :t/history-nodes)] + [list/flat-list {:data (vals mailservers) + :default-separator? false + :key-fn :name + :render-fn (render-row current-mailserver-id + preferred-mailserver-id)}]])]]))