Skip to content

Commit 7dea760

Browse files
ADjenkovADjenkov
ADjenkov
authored and
ADjenkov
committed
chore(ui-tests-app): add test for auto measured ListView.
1 parent 654426c commit 7dea760

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

apps/app/ui-tests-app/list-view/scrolling-and-sizing.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,15 @@
5151
</ListView>
5252
</StackLayout>
5353

54+
<StackLayout class="p-10" row="3">
55+
<Label text="ios-estimated-row-height" class="body m-b-10" />
56+
<ListView items="{{ $value }}" iosEstimatedRowHeight="0">
57+
<ListView.itemTemplate>
58+
<Label text="{{ $value }}" />
59+
</ListView.itemTemplate>
60+
</ListView>
61+
<Label text="after-auto-estimated-height" class="body m-b-10" />
62+
</StackLayout>
63+
5464
</StackLayout>
5565
</Page>

tns-core-modules/ui/list-view/list-view.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ export class ListView extends ListViewBase {
340340
return height;
341341
}
342342

343-
return this.ios.estimatedRowHeight;
343+
return this._ios.estimatedRowHeight;
344344
}
345345

346346
public _prepareCell(cell: ListViewCell, indexPath: NSIndexPath): number {

0 commit comments

Comments
 (0)