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

Aspect ratio feature exits Y-Axis boundary on resize #132

Closed
jsgandalf opened this issue Dec 16, 2018 · 0 comments · Fixed by #133
Closed

Aspect ratio feature exits Y-Axis boundary on resize #132

jsgandalf opened this issue Dec 16, 2018 · 0 comments · Fixed by #133
Labels

Comments

@jsgandalf
Copy link

Aspect ratio feature exits Y-Axis boundary on resize .

Here is an example on stackblitz: https://stackblitz.com/edit/angular-mesrtz

The X-Axis is respected however try resizing on the Y-Axis. Y-Axis Boundaries are ignored, please see attached screenshot
aspect ratio feature exits boundary on resize

<div class="row">
  <div class="col" style="min-height: 300px;">
    <div id="container" class="widget-container">
      <h4 class="widget-header">Containment</h4>
        <!-- rzContainment could be a CSS selector string, 'parent' or an Element object -->
        <div
          ngResizable
          [rzAspectRatio]="true"
          class="resizable-widget"
          rzContainment="#container"
          rzHandles="all"
        >
        <h4 class="widget-header">Resizable</h4>
      </div>
    </div>
  </div>
</div>
@xieziyu xieziyu added the bug label Dec 18, 2018
xieziyu pushed a commit that referenced this issue Dec 22, 2018
@xieziyu xieziyu mentioned this issue Dec 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants