Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Responsive API is not working with fxFlexFill #501

Open

Description

@Mourdraug

Bug, feature request, or proposal:

Bug

What is the expected behavior?

fxFlexFill.<breakpoint alias> should limit directive to proper width range.

What is the current behavior?

Adding breakpoint alias seems to disable directive.

What are the steps to reproduce?

https://stackblitz.com/edit/angular-flex-layout-seed-h5ajhj?file=app%2Ftest.component.ts

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

Existing behaviour seems to be broken.

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

Every I tested.

Is there anything else we should know?

Activity

  1. ThomasBurleson commented on Nov 28, 2017

    @ThomasBurleson
    Contributor

    fxFlexFill is currently only a static API; see here.

  2. added this to the Backlog milestone on Nov 28, 2017
  3. self-assigned this
    on Jan 12, 2018
  4. modified the milestones: Backlog, on Jan 12, 2018
  5. added
    P5Low-priority issue that needs consideration
    discussionFurther discussion with the team is needed before proceeding
    and removed
    P2Issue that is important to resolve as soon as possible
    on Jan 12, 2018
  6. CaerusKaru commented on Jan 20, 2018

    @CaerusKaru
    Member

    @ThomasBurleson Do you want to add a responsive API to this directive? If not, it should be closed since the docs have been updated to include this clarification.

  7. removed their assignment
    on Jan 20, 2018
  8. mackelito commented on Mar 16, 2018

    @mackelito

    It would be a great addition.. right now we cant to have fxFlexFill only if fxLayout="column" and not fxLayout.gt-sm="row".. adding responsive features to fxFlexFill would make that super simple :)

  9. CaerusKaru commented on Mar 16, 2018

    @CaerusKaru
    Member

    @mackelito This is probably something we could get in after beta.14 is validated, but if you wanted to throw together a PR sooner than that, I'd be happy to review it! 😄

  10. matthewerwin commented on Apr 9, 2020

    @matthewerwin

    @CaerusKaru this is an interesting issue b/c the library is quite constrained in this area. I was looking at issuing a PR as you solicited in 2018 since it's still not addressed. However, I think it's worth a bit of discussion on approach.

    Here is the criteria around this I can see:

    • Ability to fill horizontal-only(e.g. fxFillH.gt-lg), vertical-only (e.g. fxFillV.gt-lg), both (current behavior)
    • Allow user to specify a % that is used for width, height, max-width, max-height instead of default 100% on all these properties (e.g. fxFill.gt-lg="30%").

    Considerations:

    • How does this effect rendering if user adds fxFill, fxFillV, fxFillH to the same element to get predictable behavior? Perhaps fxFill checks for fxFillV & fxFillH...if either are active (based on BP)...then utilize those in fxFill...and in fxFillV, or fxFillH...if fxFill is present and active (based on BP) -- then do nothing since that will reference the %/px values if any in fxFillV, fxFillH
    • Add support to new layout system RFC.

    This would be very powerful in allowing very responsive handling of fill such as with SVG's. Let me know your thoughts.

  11. CaerusKaru commented on Apr 9, 2020

    @CaerusKaru
    Member

    My preference for this would be to have it managed as an input. E.g. <h w> in percents. This would allow us to keep using one directive and maintain backwards-compatibility for current fxFill users.

    On a side note, please ping me on my personal email: (my GitHub alias separated by . at gmail dot com). We can discuss this as well as your cascading router PR on angular/angular.

  12. added
    help wantedThe team would appreciate a PR from the community to address this issue
    and removed on Jan 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P5Low-priority issue that needs considerationdiscussionFurther discussion with the team is needed before proceedingenhancementfeaturehelp wantedThe team would appreciate a PR from the community to address this issue

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions