Added inset hieight to menu sheet when setting max height

pull/3372/head
Jay 4 years ago
parent b6f6b410bb
commit b42d611fde

@ -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()
}

Loading…
Cancel
Save