[#8509] Assets list is not fully scrollable on iOS

Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
Andrey Shovkoplyas 2019-07-01 16:27:44 +02:00
parent d4aac3c423
commit 73531b255b
No known key found for this signature in database
GPG Key ID: EAAB7C8622D860A4
2 changed files with 3 additions and 6 deletions

View File

@ -38,10 +38,9 @@
input-style/min-input-height input-style/min-input-height
input-style/padding-vertical input-style/padding-vertical
input-style/border-height)) input-style/border-height))
bottom (+ input-height chat-input-margin)
max-height (- chat-layout-height (when platform/ios? keyboard-height) input-height top-offset)] max-height (- chat-layout-height (when platform/ios? keyboard-height) input-height top-offset)]
[react/view style/overlap-container [react/view style/overlap-container
[react/animated-view {:style (style/expandable-container anim-value keyboard-height max-height)} [react/animated-view {:style (style/expandable-container anim-value chat-input-margin max-height)}
(into [react/scroll-view {:keyboard-should-persist-taps :always (into [react/scroll-view {:keyboard-should-persist-taps :always
:bounces false}] :bounces false}]
(when (or input-focused? (not messages-focused?)) (when (or input-focused? (not messages-focused?))

View File

@ -12,13 +12,11 @@
:right 0 :right 0
:bottom 0}) :bottom 0})
(defn expandable-container [anim-value keyboard-height max-height] (defn expandable-container [anim-value bottom max-height]
{:background-color colors/white {:background-color colors/white
:left 0 :left 0
:right 0 :right 0
:bottom (if platform/ios? :bottom bottom
(- keyboard-height 72)
0)
:position :absolute :position :absolute
:elevation 2 :elevation 2
:shadow-offset {:width 0 :height 1} :shadow-offset {:width 0 :height 1}