Skip to main content
Question

FIxed rectangle not behaving as fixed

  • August 3, 2021
  • 1 reply
  • 1011 views

Federico_Romano

I have the following structure

  • “container” frame is auto-layout
  • top-text is hug-contents
  • bottom group is fill-container
    ** text inside bottom group follows the size of the group itself (if the group stretches it stretches, if the group shrinks it shrinks)
    ** rectangle inside bottom group is fixed-size (so it simulates highlighting the word “sample”)

Aug-03-2021 15-21-43

The intention is, when top-text changes

  • to change the total width (this happens correctly)
  • to change the width of text inside bottom group (this happens correctly)
  • to keep the yellow rectangle fixed in size and position (this doesnt work)

Any ideas of what could i be doing wrong? Thanks!

This topic has been closed for comments

1 reply

  • 0 replies
  • September 2, 2021

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings