mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-12 14:16:58 -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
|
// Adjust the color selector to have the same size as the control settings
|
||||||
ViewGroup.LayoutParams params = mColorSelector.getRootView().getLayoutParams();
|
ViewGroup.LayoutParams params = mColorSelector.getRootView().getLayoutParams();
|
||||||
params.height = mDialogContent.getHeight();
|
params.height = ((ViewGroup)mDialogContent.getParent()).getHeight();
|
||||||
mColorSelector.getRootView().setLayoutParams(params);
|
mColorSelector.getRootView().setLayoutParams(params);
|
||||||
|
|
||||||
mDisplayingColor = true;
|
mDisplayingColor = true;
|
||||||
|
@ -50,7 +50,7 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignParentStart="true"
|
android:layout_alignParentStart="true"
|
||||||
android:visibility="visible"
|
android:visibility="gone"
|
||||||
|
|
||||||
tools:visibility="visible"
|
tools:visibility="visible"
|
||||||
tools:text="Cancel"
|
tools:text="Cancel"
|
||||||
@ -62,7 +62,7 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignParentEnd="true"
|
android:layout_alignParentEnd="true"
|
||||||
android:visibility="visible"
|
android:visibility="gone"
|
||||||
|
|
||||||
tools:text="Confirm"
|
tools:text="Confirm"
|
||||||
tools:visibility="visible"
|
tools:visibility="visible"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user