Jump to content
You must now use your email address to sign in [click for more info] ×

Maintain aspect ratio with constraints


Recommended Posts

Hi,

 

I'm sorry if this has already been asked but I can't seem to maintain aspect ratio of an object when using constraints.  for example, I have a button which is a rounded rectangle, and inside there is some text.  I want the text to remain the same distance from the top and bottom of the button when the button is resized, but when the text object changes size I want it to maintain is aspect ratio so that I don't end up with weird stretched text.

 

Similarly, I have a layout with a hero image.  When I paste it to a new artboard I want the hero image to touch the left and right edges of the artboard but the height to adjust so that the aspect ratio is always maintained and the image never appears stretched...

 

I've been playing around with the constraints for nearly an hour but can't get it to behave.

 

Any tips on maintaining aspect ratio?

 

blueleafstudio.net

Affinity Designer - Mac OS X

Link to comment
Share on other sites

ralphonz, the default AD requires a shift key to maintain constraints on certain types of objects and no shift key for others.  I found this very confusing.  I was always playing to figure out what type of rules there were for the object I was working on.  But then they added in the Preferences > Tools the option to have everything constrained by default, everything NOT constrained by default or the automatic method which is the default.  I now keep it so everything is not constrained if I don't have the shift key down.

iMac (27-inch, Late 2009) with macOS Sierra

Link to comment
Share on other sites

Thanks for the answers but I think you both misunderstand me.  I'm not resizing objects with the move tool, with or without the shift key.  I am assigning constraints to objects via the constraints panel (https://vimeo.com/182383578) and then pasting those objects onto a different artboard of a different width and/or height.  For some objects I would like to maintain their aspect ratio.  For example I may constrain an object to the left and right sides of the artboard and when I paste it to a wider artboard the width will increase but not necessarily the height with is a problem in some cases - for example with an rectangle object that might contain a raster image.

blueleafstudio.net

Affinity Designer - Mac OS X

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.