Added inset hieight to menu sheet when setting max height

This commit is contained in:
Jay 2020-05-24 01:24:50 -04:00
parent b6f6b410bb
commit b42d611fde

View File

@ -52,7 +52,7 @@ class MaterialMenuSheet(
window?.decorView?.systemUiVisibility = View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR
}
maxHeight?.let {
menu_scroll_view.maxHeight = it
menu_scroll_view.maxHeight = it + activity.window.decorView.rootWindowInsets.systemWindowInsetBottom
menu_scroll_view.requestLayout()
}