From 1cced4079a2f09f04aca690e52e97a34c1886598 Mon Sep 17 00:00:00 2001 From: Constantine Date: Sun, 10 Feb 2019 23:46:45 +0300 Subject: [PATCH] Fix bug with front layout size Signed-off-by: Constantine --- .../main/kotlin/ru/semper_viventem/backdrop/BackdropBehavior.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/backdrop/src/main/kotlin/ru/semper_viventem/backdrop/BackdropBehavior.kt b/backdrop/src/main/kotlin/ru/semper_viventem/backdrop/BackdropBehavior.kt index 8e9164c..27a9be1 100644 --- a/backdrop/src/main/kotlin/ru/semper_viventem/backdrop/BackdropBehavior.kt +++ b/backdrop/src/main/kotlin/ru/semper_viventem/backdrop/BackdropBehavior.kt @@ -173,6 +173,7 @@ class BackdropBehavior : CoordinatorLayout.Behavior { backLayout.y = toolbar.y + toolbar.height } + frontLayout.layoutParams.height = parent.height - calculateTopPosition(backLayout, toolbar).toInt() drawDropState(frontLayout, toolbar, backLayout, false) with(toolbar) {