Skip to main content
Question

Lock an attribute

  • February 21, 2022
  • 3 replies
  • 1107 views

greg.lubel

How do I make a component that when instantiated allows only the degrees of freedom I want?

For example the 48px high blue bordered white rectangle has a 48px square constrained left & top-bottom and that has a 24px icon, constrained to the centre of the blue square. The text lable is changeable, so the width of the white rectangle should be user settable but the height of the white rectangle and the blue square MUST remain 48px. I can’t see any way to do this. It seems like a basic feature but as far as I can see, it’s not there!

This topic has been closed for replies.

3 replies

greg.lubel
  • Author
  • 2 replies
  • February 21, 2022


Mojo
  • 67 replies
  • February 22, 2022

Both square or rectangle have resize constrains, you can set any of those to fixed width or height, you shouldn’t be in need of applying anything to the square if the father (white square) has already his fixed height.


  • 0 replies
  • March 23, 2022

This topic was automatically closed after 30 days. 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