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))})))
(defn suggestion-container []
(let [h (anim/create-value 0.1)]
[container h
[header h]
[suggestions-view]
[view {:height c/input-height}]]))
(let [h (anim/create-value 0.1)
command? (subscribe [:command?])]
(when-not @command?
[container h
[header h]
[suggestions-view]
[view {:height c/input-height}]])))