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

Basic Responsive Grid App Demo Breakpoint Issue #1374

Closed
covuworie opened this issue Dec 17, 2021 · 3 comments
Closed

Basic Responsive Grid App Demo Breakpoint Issue #1374

covuworie opened this issue Dec 17, 2021 · 3 comments

Comments

@covuworie
Copy link

covuworie commented Dec 17, 2021

Bug Report

What is the expected behavior?

When the gt-sm breakpoint is hit the grid layout should be:

header header header | sidebar content sidebar2 | footer footer footer

What is the current behavior?

When the gt-sm breakpoint is hit the grid layout is incorrectly:

"header header | sidebar content | sidebar2 sidebar2 | footer footer

This is the sm value.

What are the steps to reproduce?

  1. Go to the Basic Responsive Grid App in the grid demo apps. The corresponding grid layout code is here.
  2. Put your screen in xs mode. You will see the layout is correct at this point.
  3. Increase the screen size to sm. You will see the layout is still correct at this point.
  4. Increase the screen size to gt-sm. You will see the layout remains unchanged which is incorrect.
  5. Refresh the browser. You will see the layout changes to the correct value.

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

It seems like a bug. I have also noticed similar asymmetric behavior with flexLayout. I first thought it was my incorrect use of the responsive API. However, after seeing similar behavior in the demo app, I'm convinced it's a bug now. The correct layout only seems to appear on first initialization. When the screen is resized and the breakpoint is hit, the screen does not always adjust correctly.

I have just seen the same bug for flex Layout in the Responsive Layout Directions demo. The code is here. Similar behavior for Responsive Flex Directives on that page.

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

I presume the demo app is using the latest version of Angular.

Is there anything else we should know?

No

@ViktorReib
Copy link

I noticed the same behavior with my application, is there a workaround for this?

@CaerusKaru
Copy link
Member

We're going to be tackling the investigation into this as part of #1059, which is the same overarching issue. I agree it's annoying, and so far the root cause is proving just as annoying to pin down.

@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 Jan 23, 2022
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

3 participants