Fix scroll issue

Signed-off-by: shivekkhurana <khuranashivek@gmail.com>
This commit is contained in:
shivekkhurana 2020-11-05 18:57:30 +05:30
parent 206ce8849f
commit 0d82dab5c5
No known key found for this signature in database
GPG Key ID: CC27D94D4C3E82B9
1 changed files with 19 additions and 18 deletions

View File

@ -57,23 +57,24 @@
[{:icon :main-icons/add-circle [{:icon :main-icons/add-circle
:on-press #(re-frame/dispatch [:mailserver.ui/add-pressed])}]}] :on-press #(re-frame/dispatch [:mailserver.ui/add-pressed])}]}]
[react/view {:style styles/switch-container} [react/scroll-view
[profile.components/settings-switch-item [react/view {:style styles/switch-container}
{:label-kw :t/offline-messaging-use-history-nodes [profile.components/settings-switch-item
:value use-mailservers? {:label-kw :t/offline-messaging-use-history-nodes
:action-fn #(re-frame/dispatch [:mailserver.ui/use-history-switch-pressed (not use-mailservers?)])}]] :value use-mailservers?
[react/view {:style styles/use-history-explanation-text-container} :action-fn #(re-frame/dispatch [:mailserver.ui/use-history-switch-pressed (not use-mailservers?)])}]]
[react/text {:style styles/explanation-text} [react/view {:style styles/use-history-explanation-text-container}
(i18n/label :t/offline-messaging-use-history-explanation)]] [react/text {:style styles/explanation-text}
(i18n/label :t/offline-messaging-use-history-explanation)]]
(when use-mailservers? (when use-mailservers?
[:<> [:<>
[pinned-state preferred-mailserver-id] [pinned-state preferred-mailserver-id]
[react/text {:style styles/history-nodes-label} [react/text {:style styles/history-nodes-label}
(i18n/label :t/history-nodes)] (i18n/label :t/history-nodes)]
[list/flat-list {:data (vals mailservers) [list/flat-list {:data (vals mailservers)
:default-separator? false :default-separator? false
:key-fn :name :key-fn :name
:render-fn (render-row current-mailserver-id :render-fn (render-row current-mailserver-id
preferred-mailserver-id)}]])])) preferred-mailserver-id)}]])]]))