Jump to content
lesz3u

Affinity Designer 1.7.0 - any way to keep gaps between objects?

Recommended Posts

Hi,

is there any way to keep distance between two or more objects, when I am transforming them? It would be very usable in UI design.

Im talking about situation, when i have fixed width container and want to put in it 4 elements with 30px gap between them. Now, when i want to transform that group of 4 elements, they change width, but margin between them will keep that 30px.

To be clear - i don't talk about auto distribute feature - i know about it, but it affects gaps width only, not objects themselfs.

Artboard1.pngArtboard2.png

Share this post


Link to post
Share on other sites

Have you tried the Transform separately option 
1981185067_ScreenShot2019-06-07at08_47_00.png.bd9ade691dbf54cb4865ecfc093a1449.png


iMac 27" Late 2015 Fully Loaded, iMac 27" Mid 2011 both running High Sierra 10.13.6 - Affinity Designer/Photo & Publisher - Illustrator CC, Inkscape, Blender, Sketchup, Pepakura Designer, MTC, Pixelmator & Pixelmator Pro + more... XP-Pen Artist-22E, - iPad Pro 12.9 B|  

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

Share this post


Link to post
Share on other sites
15 minutes ago, firstdefence said:

Have you tried the Transform separately option 
1981185067_ScreenShot2019-06-07at08_47_00.png.bd9ade691dbf54cb4865ecfc093a1449.png

Thank you for response. Unfortunatly it doesn't solve my problem. Checking that option doesn't make objects keeps fixed margins between them.

I don't know if i can clearly express my mind in english, sorry for that. Imagine that Affinity works like CSS:

  1. Set 1200px flex container.
  2. Put in it 5 objects without fixed width. They fill all the space.
  3. Now you add 30px margins between objects. The container remains the same - only objects change their widths.
  4. If i want to change container width, it affects only children objects. Margins - like in css - keeps fixed 30px.

I hope the image will show what i want to ask for:

Untitled.png

Share this post


Link to post
Share on other sites

Is this the sort of thing you are after?
It’s all done with Constraints (View → Studio → Constraints) but it can be a bit tricky to get right, just needs some experimentation.

Edit: This isn't a good way of doing this, as explained in later posts. Probably best not to use this technique for this purpose.

columns-same-width.gif

columns-same-width.afdesign

Share this post


Link to post
Share on other sites

Thank you - that's sorts of idea! Unluckly that solution have one flaw - images loose their aspect ratio and it doesn't work for all time. But i will keep it in mind!

Share this post


Link to post
Share on other sites

You’re welcome.
Yeah, shame about the images losing their shape – more evident as they get smaller.
I don’t know why that happens. I’ve played around with it more but can’t get it to do exactly what you want.
More experimentation needed I think (or an explanation from someone).

Share this post


Link to post
Share on other sites

The images are actually keeping their aspect ratios but what’s happening is the ‘spacers’ I used are being drawn over them. See attached GIF where the pink ‘spacers’ overlap the images.
I guess this is because the images are scaling proportionally but the ‘spacers’ are not. And there’s got to be an overlap doing things this way as the images are being scaled in relation to the outer layer rather than the area between the ‘spacers’ because there’s no relationship between the images and the ‘spacers’.
I’ve experimented quite a bit but I can’t figure out a way of doing this properly yet. Maybe someone else can.

columns-same-width3.gif

Share this post


Link to post
Share on other sites
4 minutes ago, GarryP said:

I guess this is because the images are scaling proportionally but the ‘spacers’ are not. And there’s got to be an overlap doing things this way as the images are being scaled in relation to the outer layer rather than the area between the ‘spacers’ because there’s no relationship between the images and the ‘spacers’.

That's the point - from beggining i was talking about that relationship between images and gaps. It would be extremely useful for design interfaces, but I guess, that there is no real solution at the moment (without experiments ;)).

 

Anyway - thank you for looking at my problem - that's great :)

Share this post


Link to post
Share on other sites

If lesz3u doesn’t mind the height of the items changing then that looks like it works.
I was looking for a way of doing it without the height change but if that’s not necessary then maybe this will do the job.

Share this post


Link to post
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

Please note the Annual Company Closure section in the Terms of Use. These are the Terms of Use you will be asked to agree to if you join the forum. | 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.