fix suggestions flickering

Former-commit-id: 3e7bd39ed3
This commit is contained in:
Roman Volosovskyi 2016-06-30 17:47:12 +03:00
parent 7e13ef0210
commit f833fd12c3
1 changed files with 7 additions and 5 deletions

View File

@ -119,8 +119,10 @@
(into [animated-view {:style (st/container h)}] elements))}))) (into [animated-view {:style (st/container h)}] elements))})))
(defn suggestion-container [] (defn suggestion-container []
(let [h (anim/create-value 0.1)] (let [h (anim/create-value 0.1)
[container h command? (subscribe [:command?])]
[header h] (when-not @command?
[suggestions-view] [container h
[view {:height c/input-height}]])) [header h]
[suggestions-view]
[view {:height c/input-height}]])))