kongzue 3 anni fa
parent
commit
554571b78e

+ 2 - 2
DialogX/src/main/java/com/kongzue/dialogx/util/views/MaxRelativeLayout.java

@@ -110,10 +110,10 @@ public class MaxRelativeLayout extends RelativeLayout {
         if (lockWidth) {
             maxWidth = Math.min(maxWidth, Math.min(widthSize, preWidth));
         }
-        if (maxHeight > 0) {
+        if (heightSize > maxHeight && maxHeight!=0) {
             heightSize = maxHeight;
         }
-        if (maxWidth > 0) {
+        if (widthSize > maxWidth && maxWidth!=0) {
             widthSize = maxWidth;
         }
         View blurView = findViewWithTag("blurView");

+ 1 - 1
gradle.properties

@@ -18,5 +18,5 @@ android.useAndroidX=true
 # Automatically convert third-party libraries to use AndroidX
 android.enableJetifier=true
 
-BUILD_VERSION=0.0.43.beta14
+BUILD_VERSION=0.0.43.beta15
 BUILD_VERSION_INT=42