ImageActor backgroundColourActor = Dali::Toolkit::CreateSolidColorActor( BACKGROUND_COLOR );
backgroundColourActor.SetAnchorPoint( AnchorPoint::CENTER );
backgroundColourActor.SetParentOrigin( ParentOrigin::CENTER );
- backgroundColourActor.SetResizePolicy( FILL_TO_PARENT, ALL_DIMENSIONS );
- backgroundColourActor.SetSizeMode( SIZE_RELATIVE_TO_PARENT );
+ backgroundColourActor.SetResizePolicy( SIZE_RELATIVE_TO_PARENT, ALL_DIMENSIONS );
backgroundColourActor.SetSizeModeFactor( Vector3( 1.0f, 1.5f, 1.0f ) );
backgroundColourActor.SetZ( BACKGROUND_Z );
mScrollViewLayer.Add( backgroundColourActor );
content.SetAnchorPoint( AnchorPoint::CENTER );
content.SetParentOrigin( ParentOrigin::CENTER );
content.SetRelayoutEnabled( true );
- content.SetResizePolicy( FILL_TO_PARENT, ALL_DIMENSIONS );
- content.SetSizeMode( SIZE_RELATIVE_TO_PARENT );
+ content.SetResizePolicy( SIZE_RELATIVE_TO_PARENT, ALL_DIMENSIONS );
content.SetSizeModeFactor( sizeMultiplier );
// create background image
text.SetTextAlignment( Toolkit::Alignment::Type( Alignment::HorizontalCenter | Alignment::VerticalCenter ) );
text.SetZ( 1 );
// make the text 90% of tile
- text.SetResizePolicy( FILL_TO_PARENT, ALL_DIMENSIONS );
- text.SetSizeMode( SIZE_RELATIVE_TO_PARENT );
+ text.SetResizePolicy( SIZE_RELATIVE_TO_PARENT, ALL_DIMENSIONS );
text.SetSizeModeFactor( Vector3( 0.9f, 0.9f, 0.0f ) );
text.SetStyleToCurrentText( GetTableTextStyle() );
text.SetSnapshotModeEnabled( false );
mVersionPopup = Dali::Toolkit::Popup::New();
mVersionPopup.SetParentOrigin( ParentOrigin::CENTER );
mVersionPopup.SetAnchorPoint( AnchorPoint::CENTER );
- mVersionPopup.SetResizePolicy( FILL_TO_PARENT, WIDTH );
- mVersionPopup.SetSizeMode( SIZE_RELATIVE_TO_PARENT );
+ mVersionPopup.SetResizePolicy( SIZE_RELATIVE_TO_PARENT, WIDTH );
mVersionPopup.SetSizeModeFactor( Vector3( 0.75f, 1.0f, 1.0f ) );
mVersionPopup.SetResizePolicy( FIT_TO_CHILDREN, HEIGHT );
mVersionPopup.SetTitle( stream.str() );