else if (widgetContainer != null)
{
// Widget is used -- use its bounds as the container's bounds
Transform t = widgetContainer.cachedTransform;
Vector3 ls = t.localScale;
Vector3 lp = t.localPosition;
Vector3 offset = widgetContainer.pivotOffset;
offset.y -= widgetContainer.relativeSize.y;
if(this.gameObject.name == "2")
Debug.Log( offset.y );
/// ergebnis: -12
offset.x *= (widgetContainer.relativeSize.x * ls.x);
offset.y *= (widgetContainer.relativeSize.y * ls.y);
rect.x = lp.x + offset.x;
rect.y = lp.y + offset.y;
rect.width = ls.x;
rect.height = ls.y;
if(this.gameObject.name == "2")
Debug.Log( rect.y + " " + rect.yMin +" " + offset.y + " " +widgetContainer.relativeSize.y + " " + ls.y);
////Ergebis -4032 -4032 -4176 12 29
}