mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fixed: DockLayout in ScrollView returns wrong size on API 17
This commit is contained in:
@@ -41,8 +41,8 @@ public class DockLayout extends LayoutBase {
|
|||||||
int verticalPadding = this.getPaddingTop() + this.getPaddingBottom();
|
int verticalPadding = this.getPaddingTop() + this.getPaddingBottom();
|
||||||
int horizontalPadding = this.getPaddingLeft() + this.getPaddingRight();
|
int horizontalPadding = this.getPaddingLeft() + this.getPaddingRight();
|
||||||
|
|
||||||
int remainingWidth = widthMode == MeasureSpec.UNSPECIFIED ? Integer.MAX_VALUE : width - horizontalPadding;
|
int remainingWidth = widthMode == MeasureSpec.UNSPECIFIED ? 0 : width - horizontalPadding;
|
||||||
int remainingHeight = heightMode == MeasureSpec.UNSPECIFIED ? Integer.MAX_VALUE : height - verticalPadding;
|
int remainingHeight = heightMode == MeasureSpec.UNSPECIFIED ? 0 : height - verticalPadding;
|
||||||
|
|
||||||
int tempHeight = 0;
|
int tempHeight = 0;
|
||||||
int tempWidth = 0;
|
int tempWidth = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user