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

rzMaxHeight not working properly #250

Open
stjjelic opened this issue Jan 17, 2023 · 0 comments
Open

rzMaxHeight not working properly #250

stjjelic opened this issue Jan 17, 2023 · 0 comments

Comments

@stjjelic
Copy link

stjjelic commented Jan 17, 2023

rzMaxHeight does not stop resize on the max height when both rzMaxHeight and rzMaxWidth exist.

The problem is simple to replicate:
Lets say we have 1000x1000 container and rzMaxHeight and rzMaxWidth are 1000, and we have div which is 600x500.
When we resize that div it should stop when we hit 1000 height, but it just continues until we actually hit 1000 width which in the end makes our div 1200x1000 which is bigger than a container.

Edit: Important note, this happens only if [rzAspectRatio]="true"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant