Skip to content

Autosize virtual scroll viewport height being wrong when working with Ionic components #1812

@FelixMuehling

Description

@FelixMuehling

Description

We are using your autosize virtual scroll implementation together with Ionic and were facing some issues.

The initial calculated height of the virtual scroll viewport is wrong when working with Ionic components.
(I guess thats not an Ionic exclusive problem, but rather a problem with web components?)

The View (there should be 5 items):

image

DevTools:

image

It also seems to make a difference whether an custom scroll container with rxVirtualScrollElement is used or not.
When removing the custom scroll container, the issue doesn't reproduce anymore.

Steps to Reproduce the Issue

Look at this stackblitz.

Click the Change detection button to fix the view by triggering change detection manually. That does only work
when reading the signal in our template instead of passing it.

When removing the rxVirtualScrollElement container, it doesn't reproduce anymore.

Environment

Angular: 18.2.12
rx-angular/template: 18.0.3
Browser: Chrome 131.0.6778.85

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