mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fix when GridLayout is recycled some internal states are not invalidated correctly (#104)
This commit is contained in:
@@ -11,7 +11,7 @@ def computeCompileSdkVersion () {
|
|||||||
return compileSdk
|
return compileSdk
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return 23
|
return 25
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -29,7 +29,7 @@ def computeTargetSdkVersion() {
|
|||||||
return targetSdk
|
return targetSdk
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return 23
|
return 25
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -522,7 +522,6 @@ class MeasureHelper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setInfinityWidth(boolean value) {
|
public void setInfinityWidth(boolean value) {
|
||||||
if (this.infinityWidth != value) {
|
|
||||||
this.infinityWidth = value;
|
this.infinityWidth = value;
|
||||||
|
|
||||||
for (int i = 0, size = this.columns.size(); i < size; i++) {
|
for (int i = 0, size = this.columns.size(); i < size; i++) {
|
||||||
@@ -530,10 +529,8 @@ class MeasureHelper {
|
|||||||
columnGroup.setIsLengthInfinity(value);
|
columnGroup.setIsLengthInfinity(value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public void setInfinityHeight(boolean value) {
|
public void setInfinityHeight(boolean value) {
|
||||||
if (this.infinityHeight != value) {
|
|
||||||
this.infinityHeight = value;
|
this.infinityHeight = value;
|
||||||
|
|
||||||
for (int i = 0, size = this.rows.size(); i < size; i++) {
|
for (int i = 0, size = this.rows.size(); i < size; i++) {
|
||||||
@@ -541,7 +538,6 @@ class MeasureHelper {
|
|||||||
rowGroup.setIsLengthInfinity(value);
|
rowGroup.setIsLengthInfinity(value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public void addMeasureSpec(MeasureSpecs measureSpec) {
|
public void addMeasureSpec(MeasureSpecs measureSpec) {
|
||||||
// Get column stats
|
// Get column stats
|
||||||
|
|||||||
Reference in New Issue
Block a user