Skip to main content
Solved

How to define size in % relative to parent?


Slava_Bronevitskiy

I am trying to create a simple progress bar master component, where I want progress to be 60% regardless of how small or wide an instance is stretched.

How would I go about this?

Best answer by tank666

Hi @Slava_Bronevitskiy!

  1. Indicator Width (100%) - 40% or W Γ— 0.6;
  2. Set Scale horizontally in the Constraints section.
View original
This topic has been closed for comments

3 replies

tank666
  • 4859 replies
  • Answer
  • July 6, 2021

Hi @Slava_Bronevitskiy!

  1. Indicator Width (100%) - 40% or W Γ— 0.6;
  2. Set Scale horizontally in the Constraints section.

Slava_Bronevitskiy

That works like a charm! Thanks.


  • 0 replies
  • August 6, 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