mShadowPlaneBg = shadowPlane;
mShadowPlane = ImageActor::New();
+ mShadowPlane.SetName( "SHADOW_PLANE" );
mShadowPlane.SetParentOrigin(ParentOrigin::CENTER);
mShadowPlane.SetAnchorPoint(AnchorPoint::CENTER);
ConstrainCamera();
- mShadowPlane.SetSizeMode( SIZE_EQUAL_TO_PARENT );
+ mShadowPlane.SetResizePolicy( FILL_TO_PARENT, ALL_DIMENSIONS );
- mBlurRootActor.SetSizeMode( SIZE_EQUAL_TO_PARENT );
+ mBlurRootActor.SetResizePolicy( FILL_TO_PARENT, ALL_DIMENSIONS );
}
void ShadowView::SetPointLight(Actor pointLight)
{
// root actor to parent all user added actors. Used as source actor for shadow render task.
mChildrenRoot.SetPositionInheritanceMode( Dali::USE_PARENT_POSITION );
- mChildrenRoot.SetSizeMode( SIZE_EQUAL_TO_PARENT );
+ mChildrenRoot.SetRelayoutEnabled( true );
+ mChildrenRoot.SetResizePolicy( FILL_TO_PARENT, ALL_DIMENSIONS );
Vector2 stageSize = Stage::GetCurrent().GetSize();
mCameraActor = CameraActor::New(stageSize);
mBlurFilter.SetPixelFormat(Pixel::RGBA8888);
mBlurRootActor = Actor::New();
+ mBlurRootActor.SetName( "BLUR_ROOT_ACTOR" );
+ mBlurRootActor.SetRelayoutEnabled( true );
// Turn off inheritance to ensure filter renders properly
mBlurRootActor.SetPositionInheritanceMode(USE_PARENT_POSITION);