mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-09 02:23:38 +02:00
Fixed behavior
This commit is contained in:
@@ -46,6 +46,7 @@ public class BehaviorBottomMargin extends CoordinatorLayout.Behavior<View> {
|
||||
public boolean onDependentViewChanged(@NonNull CoordinatorLayout parent, @NonNull View child, @NonNull View dependency) {
|
||||
CoordinatorLayout.LayoutParams lparam = (CoordinatorLayout.LayoutParams) child.getLayoutParams();
|
||||
lparam.setMargins(0, 0, 0, dependency.getHeight());
|
||||
child.setLayoutParams(lparam);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -53,5 +54,6 @@ public class BehaviorBottomMargin extends CoordinatorLayout.Behavior<View> {
|
||||
public void onDependentViewRemoved(CoordinatorLayout parent, View child, View dependency) {
|
||||
CoordinatorLayout.LayoutParams lparam = (CoordinatorLayout.LayoutParams) child.getLayoutParams();
|
||||
lparam.setMargins(0, 0, 0, 0);
|
||||
child.setLayoutParams(lparam);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user