[#3325]: Transaction fee field is hidden behind keyboard if Amount field had focus

Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
This commit is contained in:
alwxndr 2018-03-12 14:31:55 +01:00 committed by Julien Eluard
parent cad3770b48
commit 1b5b6e33b4
No known key found for this signature in database
GPG Key ID: 6FD7DB5437FCBEF6
2 changed files with 9 additions and 7 deletions

View File

@ -60,9 +60,6 @@
:margin-top 22
:margin-horizontal 92})
(def advanced-cartouche
{:padding-bottom 50})
(def advanced-button
{:flex-direction :row
:background-color styles/color-blue6

View File

@ -149,9 +149,10 @@
(i18n/label :t/done)]]]])))
(defn- advanced-cartouche [{:keys [gas gas-price]} modal?]
[react/view styles/advanced-cartouche
[wallet.components/cartouche {:disabled? modal? :on-press #(do (re-frame/dispatch [:wallet.send/clear-gas])
(re-frame/dispatch [:navigate-to-modal :wallet-transaction-fee]))}
[react/view
[wallet.components/cartouche {:disabled? modal?
:on-press #(do (re-frame/dispatch [:wallet.send/clear-gas])
(re-frame/dispatch [:navigate-to-modal :wallet-transaction-fee]))}
(i18n/label :t/wallet-transaction-fee)
[react/view styles/advanced-options-text-wrapper
[react/text {:style styles/advanced-fees-text}
@ -178,7 +179,11 @@
(i18n/label :t/send-transaction)]
[react/view components.styles/flex
[common/network-info {:text-color :white}]
[react/scroll-view (merge {:keyboardShouldPersistTaps :always} (when-not modal? {:ref #(reset! scroll %)}))
[react/scroll-view (merge {:keyboard-should-persist-taps :always
:on-content-size-change #(when @scroll
(.scrollToEnd @scroll))}
(when-not modal?
{:ref #(reset! scroll %)}))
[react/view styles/send-transaction-form
[components/recipient-selector {:disabled? modal?
:address to