             
         // Otherwise we draw at x,y since the display object will be
         // positioned at 0,0
-        if (layoutFeatures != null && layoutFeatures.offsets != null)
-            return x + layoutFeatures.offsets.x;
+        if (layoutFeatures != null && layoutFeatures.postLayoutTransformOffsets != null)
+            return x + layoutFeatures.postLayoutTransformOffsets.x;
             
         return x;
     } 

	 *  @playerversion AIR 1.5
	 *  @productversion Flex 4
	 */
    public function get layer():Number
    {
        return (layoutFeatures == null)? 0:layoutFeatures.layer;
    }

    /**
     *  @private
     */
    public function set layer(value:Number):void
    {
        if(value == layer)
            return;

        allocateLayoutFeatures();
        layoutFeatures.layer = value;  
        if(_parent != null && _parent is UIComponent)
            (_parent as UIComponent).invalidateLayering();
        invalidateProperties();

    }

    /**
     *  @private
     *  Enables clipping or alpha, depending on the type of mask being applied.
     */
    mx_internal function applyMaskType():void
    {
        if (_mask)
        {
