question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Both sm and xs breakpoints are active when screen width is 600px

See original GitHub issue

Bug Report

What is the expected behavior?

I believe xs is supposed to kick in at 599px so I’d expect that only sm would be active at this point.

What is the current behavior?

Both sm and xs are active.

What are the steps to reproduce?

<div fxHide fxShow.gt-xs>fxHide fxShow.gt-xs</div>
<div fxHide fxShow.sm>fxHide fxShow.sm</div>
<div fxHide fxShow.xs>fxHide fxShow.xs</div>

When viewport width is exactly 600px all of these elements will display.

Example here: https://stackblitz.com/edit/angular-flex-layout-seed-aojwqc

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

Having both breakpoints active can lead to unexpected renders.

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

All as far as I know.

Is there anything else we should know?

Nope.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
k0hamedcommented, May 30, 2019

@CaerusKaru No problem, I’ll submit a PR with this fix.

0reactions
angular-automatic-lock-bot[bot]commented, Sep 5, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Overview - Bootstrap
Choose from a responsive, fixed-width container (meaning its max-width changes at each breakpoint) or fluid-width (meaning it's 100% wide all the time). While ......
Read more >
Tailwind breakpoint not working to specify width on small ...
On mobile I want each element to be stacked in column and the buttons to take the full width of the container. On...
Read more >
Display Breakpoints - Vuetify
It exposes a number of properties on the $vuetify object that can be used to control aspects of your application based upon the...
Read more >
Using Breakpoints and Media Queries in Material-UI
xs, extra-small: 0px; sm, small: 600px; md, medium: 960px; lg, large: 1280px ... When the screen size is 600px and above, it will...
Read more >
Responsive Design - Tailwind CSS
To add a utility but only have it take effect at a certain breakpoint, ... Width of 16 by default, 32 on medium...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found