}
else
{
- if (Owner.Position != null)
+ if (independent)
{
- if(independent)
- {
- // If height or width specification is not explicitly defined,
- // the size of the owner view must be reset even the ExcludeLayouting is true.
- if (Owner.HeightSpecification < 0 || Owner.WidthSpecification < 0)
- {
- Owner.SetSize(right - left, bottom - top);
- }
- }
- else
+ // If height or width specification is not explicitly defined,
+ // the size of the owner view must be reset even the ExcludeLayouting is true.
+ if (Owner.HeightSpecification < 0 || Owner.WidthSpecification < 0)
{
Owner.SetSize(right - left, bottom - top);
- Owner.SetPosition(left, top);
}
}
+ else
+ {
+ Owner.SetSize(right - left, bottom - top);
+ Owner.SetPosition(left, top);
+ }
}
// Reset condition for animation ready for next transition when required.