Fixed bottom behaviors

pull/183/head
M66B 5 years ago
parent ff5ec9eb1f
commit 8d3c057fea

@ -44,7 +44,7 @@ public class BehaviorBottomMargin extends CoordinatorLayout.Behavior<View> {
@Override
public boolean onDependentViewChanged(@NonNull CoordinatorLayout parent, @NonNull View child, @NonNull View dependency) {
setMargin(child, dependency.getHeight());
setMargin(child, dependency.isAttachedToWindow() ? dependency.getHeight() : 0);
return true;
}

@ -44,7 +44,7 @@ public class BehaviorBottomPadding extends CoordinatorLayout.Behavior<View> {
@Override
public boolean onDependentViewChanged(@NonNull CoordinatorLayout parent, @NonNull View child, @NonNull View dependency) {
setPadding(child, dependency.getHeight());
setPadding(child, dependency.isAttachedToWindow() ? dependency.getHeight() : 0);
return true;
}

Loading…
Cancel
Save