Fix layout calculate in horizontal mode.

This commit is contained in:
MikeAfc
2020-01-09 16:21:46 +08:00
parent b7f46425e7
commit 50e63cc47f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -44,7 +44,7 @@
GROUP=com.alibaba.android
ARTIFACT=vlayout
VERSION=1
VERSION_NAME=1.2.36
VERSION_NAME=1.2.37
PACKAGING_TYPE=aar
useNewSupportLibrary=true
systemProp.compileSdkVersion=26
@@ -206,7 +206,7 @@ public abstract class BaseLayoutHelper extends MarginLayoutHelper {
mLayoutRegion.right = helper.getContentWidth() - helper.getPaddingRight() - mMarginRight;
} else {
mLayoutRegion.top = helper.getPaddingTop() + mMarginTop;
mLayoutRegion.bottom = helper.getContentWidth() - helper.getPaddingBottom() - mMarginBottom;
mLayoutRegion.bottom = helper.getContentHeight() - helper.getPaddingBottom() - mMarginBottom;
}
bindLayoutView(mLayoutView);