[#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:
parent
cad3770b48
commit
1b5b6e33b4
|
@ -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
|
||||
|
|
|
@ -149,8 +149,9 @@
|
|||
(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])
|
||||
[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
|
||||
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue