Skip to main content
dcmaia-nectar
July 26, 2024
Question

Is Absolute Position supposed to disable 'Scale' and 'Left and Right' constraints?

  • July 26, 2024
  • 2 replies
  • 548 views

I have an auto-layout frame with a fixed width (the screen). I like to resize it every now and then to check how everything looks in different screen sizes.
Inside it I have another frame (a translucent navbar/header) set to absolute so it sits on top of other elements. However I want it to always match the width of the screen. As soon as that’s changed, I have to manually fix the header each time.

I’ve found some related threads (1, 2) that seem to have a similar issue, but it seems they’re bugs and the workaround is to set the position to “scroll with parent”. In my situation, the element is already set to it, so they might’ve have a different problem.

What am I doing wrong?

This topic has been closed for replies.

2 replies

Marian_Brchan
July 27, 2024

Can you share the file? Or just copy the selected elements to a new file and share that one?
It’s hard to tell where’s the issue without looking into it.

Gleb
Power Member
July 27, 2024

Is Absolute Position supposed to disable ‘Scale’ and ‘Left and Right’ constraints?

It doesn’t disable them but it also doesn’t enable them automatically. Did you set these constraints for this object?