Differences

This shows you the differences between two versions of the page.

understanding_the_openpyro_measurement_system [2009/02/24 21:57]
arpit
understanding_the_openpyro_measurement_system [2009/02/24 21:58] (current)
arpit
Line 25: Line 25:
If you have a UIContainer of width 400 and height 300, and have two children inside it, one with a width/height of 200x250 and another with a percentWidth of 100%, and if the container has an HLayout applied to it, the layout looks at the first control, and realizes that once it will place it, it will only have (400 - 200) pixels left. So then when it places the second container, 100% width will translate to the 400-200=200 value. However if the layout applied is VLayout, it realizes that since its going to place the second control under the first one, the width of the first control has no bearing on the sizing of the second control and so the 100% value is translated to the complete 400px value. If you have a UIContainer of width 400 and height 300, and have two children inside it, one with a width/height of 200x250 and another with a percentWidth of 100%, and if the container has an HLayout applied to it, the layout looks at the first control, and realizes that once it will place it, it will only have (400 - 200) pixels left. So then when it places the second container, 100% width will translate to the 400-200=200 value. However if the layout applied is VLayout, it realizes that since its going to place the second control under the first one, the width of the first control has no bearing on the sizing of the second control and so the 100% value is translated to the complete 400px value.
 +
 +
**__Percent Dimensions (percentWidth, percentHeight)__** **__Percent Dimensions (percentWidth, percentHeight)__**
understanding_the_openpyro_measurement_system.txt · Last modified: 2009/02/24 21:58 by arpit
 
 
©2008 Another cool website by 80KV