fix suggestions flickering

This commit is contained in:
Roman Volosovskyi 2016-06-30 17:47:12 +03:00
parent c97fdbe8c5
commit 3e7bd39ed3
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}]])))