Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

virtual-scroll does not size correctly when inside flex-layout div #12062

Closed
bsthilaire opened this issue Jul 4, 2018 · 2 comments
Closed

virtual-scroll does not size correctly when inside flex-layout div #12062

bsthilaire opened this issue Jul 4, 2018 · 2 comments

Comments

@bsthilaire
Copy link

Bug, feature request, or proposal:

Bug. The cdk-virtual-scroll does not behave correctly when sizing is done by flex-layout in certain case.

The VirtualScroll will have the full height of all the items instead of taking the size of the available.

What is the expected behavior?

Only take the place given by the flex-layout

What is the current behavior?

  • In Chrome : Work as expected
  • In Firefox and Edge : The Virtual Scroll does not size correctly and has a height of the sum of the items.

What are the steps to reproduce?

Here is a StackBlitz : https://stackblitz.com/edit/angular-virtual-scroll-and-flex-layout

Note: if the Virtual Scroll is not inside the "listComponent" div, it will resize correctly.

What is the use-case or motivation for changing an existing behavior?

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular 6.0.7
Material 6.3.2
Flex-Layout 6.0.0-beta.16
OS: Windows
Browsers : Firefox 61.0, Edge 42.17134.1.0

Is there anything else we should know?

@bsthilaire
Copy link
Author

Seem to be a flex-layout issue. workarounds specified in angular/flex-layout#689 seem to fix the issue for now.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant