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 and resize #1049

Open
Barahten opened this issue Aug 12, 2024 · 0 comments
Open

Aspect ratio and resize #1049

Barahten opened this issue Aug 12, 2024 · 0 comments

Comments

@Barahten
Copy link

I am trying to achieve resizing of an element while maintaining aspect ratios. An example is available at this link https://codepen.io/cwgsfnxp-the-looper/pen/xxoXeew.

Try stretching the red block to the full width of the gray one. As soon as the width of the red block becomes equal to the width of the gray parent block, further resizing becomes impossible from any side or corner.

Also, if you leave only the restrictRect() modifier, when resizing the element to the width of the parent, it makes further horizontal resizing impossible - only vertical resizing works

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