-
Notifications
You must be signed in to change notification settings - Fork 767
fxHide.gt-sm/lt-md (or other) does not work for exact pixel breakpoint, probably by design #1096
Comments
@CaerusKaru what's the new functionality? how does it make the choice between what will be hidden/displayed? or is there a new feature like fxHide.eq-sm // fxHide-lt-eq-sm? I've read a bit through those issues but I'm guessing the old overlapping issue was fixed with the side-effect of not things not working at the exact breakpoint? |
If you actually look at the commit referenced in the PR I linked, you'll see that |
You can read about a bug where on some browsers because of that .99 was too close, it would assign it to the very next value. The issue at hand being that a fix for that bug might've caused this one. |
At no point do you mention other browsers being an issue. Further, the issue I linked is the literal commit that changes the values from PS You are dangerously close to a CoC violation. I edited your comment to remove the language, but please understand I hold no snark towards you, and my continued responses should indicate a desire to help. |
Closing without further comment. If there's a development, we can reopen. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report
What is the expected behavior?
Have a way to use fxHide.gt-sm type of directives to show/hide elements for different breakpoints. For example, hide mobile navigation using [fxHide.gt-sm]="true" and then hide desktop navigation using [fxHide.lt-md]="true"
What is the current behavior?
It works but for the exact pixel value in the example above, the breakpoint is '960px' If the window is exactly 960px, none of the menus show up & there's no way to effectively use the responsive API breakpoints if
What is the use-case or motivation for changing an existing behavior?
Showing something at an exact breakpoint? I'm not sure what the workaround would be and even though the chances for someone having the exact resolution of a breakpoint are slim -- I wouldn't ship a product with that behaviour.
The text was updated successfully, but these errors were encountered: