diff --git a/side-header-decorator/src/main/java/com/sevenshifts/sideheaderdecorator/SideHeaderDecorator.kt b/side-header-decorator/src/main/java/com/sevenshifts/sideheaderdecorator/SideHeaderDecorator.kt index c640175..84f188a 100644 --- a/side-header-decorator/src/main/java/com/sevenshifts/sideheaderdecorator/SideHeaderDecorator.kt +++ b/side-header-decorator/src/main/java/com/sevenshifts/sideheaderdecorator/SideHeaderDecorator.kt @@ -59,8 +59,7 @@ abstract class SideHeaderDecorator(private val headerProvider: HeaderProvider c.save() if (childPosition == 0) { val top = when { - beginsGroup && endsGroup -> view.top.toFloat() - endsGroup -> min(view.bottom - headerView.measuredHeight, 0).toFloat() + beginsGroup && endsGroup || endsGroup-> view.top.toFloat() else -> 0f }