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
|
||||
}
|
||||
else {
|
||||
return 23
|
||||
return 25
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ def computeTargetSdkVersion() {
|
||||
return targetSdk
|
||||
}
|
||||
else {
|
||||
return 23
|
||||
return 25
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -522,24 +522,20 @@ class MeasureHelper {
|
||||
}
|
||||
|
||||
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++) {
|
||||
ItemGroup columnGroup = this.columns.get(i);
|
||||
columnGroup.setIsLengthInfinity(value);
|
||||
}
|
||||
for (int i = 0, size = this.columns.size(); i < size; i++) {
|
||||
ItemGroup columnGroup = this.columns.get(i);
|
||||
columnGroup.setIsLengthInfinity(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++) {
|
||||
ItemGroup rowGroup = this.rows.get(i);
|
||||
rowGroup.setIsLengthInfinity(value);
|
||||
}
|
||||
for (int i = 0, size = this.rows.size(); i < size; i++) {
|
||||
ItemGroup rowGroup = this.rows.get(i);
|
||||
rowGroup.setIsLengthInfinity(value);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user