Skip to content

rzMaxHeight not working properly #250

@stjjelic

Description

@stjjelic

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions