mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-10 13:16:04 -04:00
Fix(side dialog): height was incorrect
This commit is contained in:
parent
0e06203640
commit
a93d7b0825
@ -135,7 +135,7 @@ public class EditControlSideDialog extends SideDialogView<ConstraintLayout> {
|
||||
|
||||
// Adjust the color selector to have the same size as the control settings
|
||||
ViewGroup.LayoutParams params = mColorSelector.getRootView().getLayoutParams();
|
||||
params.height = mDialogContent.getHeight();
|
||||
params.height = ((ViewGroup)mDialogContent.getParent()).getHeight();
|
||||
mColorSelector.getRootView().setLayoutParams(params);
|
||||
|
||||
mDisplayingColor = true;
|
||||
|
@ -50,7 +50,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentStart="true"
|
||||
android:visibility="visible"
|
||||
android:visibility="gone"
|
||||
|
||||
tools:visibility="visible"
|
||||
tools:text="Cancel"
|
||||
@ -62,7 +62,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:visibility="visible"
|
||||
android:visibility="gone"
|
||||
|
||||
tools:text="Confirm"
|
||||
tools:visibility="visible"
|
||||
|
Loading…
x
Reference in New Issue
Block a user