Fix transform_anchor to work with anchors of type absolute.