Game Development Community

Extent vs. MinExtent

by Rich Adam · in Torque 3D Professional · 04/22/2010 (2:18 pm) · 1 replies

What is the interaction between these two elements? I am trying to dynamically size a GuiControl based on its content. This control is being used as a container for items contained in a GuiRolloutCtrl. The actual size seems to be determined by the value of MinExtent not Extent. I see no ability to setMinExtent(), but mainly I want to understand why setting the MinExtent seems to be overriding Extent. This occurs when Extent is larger than MinExtent. I understand that if MinExtent is larger than Extent, that it would override Extent.

#1
04/22/2010 (2:32 pm)
Minextent is exactly that: the minimum width and height a control can be sized to. Extent is the current width and height of the control.

The rollout control may be messing with it in ways you aren't expecting... honestly, I gave up on them because of similar issues you are running into and rolled my own solution. Hopefully someone more familiar with their use has more info for you.