[#4394] Use zIndex to move inactive tabs back.

That ensures that no view from an inactive tab will interfere with the
active one.

Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
This commit is contained in:
Igor Mandrigin 2018-05-23 18:27:04 +02:00 committed by Julien Eluard
parent 502e8b9908
commit 32d3b16f83
No known key found for this signature in database
GPG Key ID: 6FD7DB5437FCBEF6
1 changed files with 4 additions and 2 deletions

View File

@ -192,9 +192,11 @@
(= views current-view))
style (if current-view?
{:flex 1}
{:flex 1
:zIndex 0}
{:opacity 0
:flex 0})
:flex 0
:zIndex -1})
component' (if (fn? component) [component] component)]