From 9d354614fe611ae842ba49c12a2625ed6fb427b3 Mon Sep 17 00:00:00 2001 From: Alexander Pantyuhov Date: Wed, 19 Oct 2016 13:10:38 +0300 Subject: [PATCH] Fix for suggestions bar (#370) Former-commit-id: 697ba310d057a3504d3440b397475f7e8c40e146 --- src/status_im/chat/subs.cljs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/status_im/chat/subs.cljs b/src/status_im/chat/subs.cljs index d280a60da7..41027ddfe5 100644 --- a/src/status_im/chat/subs.cljs +++ b/src/status_im/chat/subs.cljs @@ -219,8 +219,10 @@ (let [chat-id (subscribe [:get-current-chat-id])] (reaction (min (get-in @db [:animations :to-response-height @chat-id]) - (- (:layout-height @db) - (get-in platform-specific [:component-styles :status-bar status-bar :height]))))))) + (if (> (:layout-height @db) 0) + (- (:layout-height @db) + (get-in platform-specific [:component-styles :status-bar status-bar :height])) + 0)))))) (register-sub :web-view-url (fn [db]