+void View::OnControlSizeSet( const Vector3& targetSize )
+{
+ mViewSize = targetSize;
+ if( mBackgroundLayer )
+ {
+ mBackgroundLayer.SetSize( mViewSize );
+ if( mBackgroundLayer.GetChildCount() > 0 )
+ {
+ Actor background = mBackgroundLayer.GetChildAt(0);
+ background.SetScale( FillXYKeepAspectRatio( mViewSize, background.GetSize() ) );
+ }
+ }
+}
+