Skip to content

ListView row height collapsed after app resumes from background (iOS) #2215

@JWiseCoder

Description

@JWiseCoder

When I have a listView in a component, and I press home button to background the app, sometimes when I return, the heights of all my rows are collapsed.

This is a small test I made:

Code:

 <GridLayout rows="*"> <ListView [items]="temp_items"> <ng-template let-item="item"> <StackLayout height="100"> <Label [text]="item.title"></Label> </StackLayout> </ng-template> </ListView> </GridLayout> 

Expected:
image

Reality:
image

The only way I can get it not to break is if there is a height AND width on the GridLayout or ListView. There must be both height and width: just one or the other won't do. This is impractical, though, because most of the time it is preferable for ListViews to resize dynamically and fill the screen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions