X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fbuttons%2Fbutton-impl.cpp;h=7115cecfdf64a37fe35ccc8dee329041bbd883db;hb=7dc926f34a990b06a39dec7bc467803fe0773600;hp=4765f441db8e1f658c421455587bc04cb23d8f60;hpb=4b347781c8761d2909b235ded2e98d272fa9ac16;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/controls/buttons/button-impl.cpp b/dali-toolkit/internal/controls/buttons/button-impl.cpp index 4765f44..7115cec 100644 --- a/dali-toolkit/internal/controls/buttons/button-impl.cpp +++ b/dali-toolkit/internal/controls/buttons/button-impl.cpp @@ -617,11 +617,6 @@ float Button::GetAnimationTime() const void Button::SetLabel( const std::string& label ) { Toolkit::TextLabel textLabel = Toolkit::TextLabel::New( label ); - textLabel.SetResizePolicy( FILL_TO_PARENT, ALL_DIMENSIONS ); - textLabel.SetProperty( Toolkit::TextLabel::Property::HORIZONTAL_ALIGNMENT, "CENTER" ); - textLabel.SetProperty( Toolkit::TextLabel::Property::VERTICAL_ALIGNMENT, "CENTER" ); - textLabel.SetProperty( Toolkit::TextLabel::Property::MULTI_LINE, true ); - SetLabel( textLabel ); } @@ -679,6 +674,8 @@ void Button::SetButtonImage( Actor image ) } OnButtonImageSet(); + + RelayoutRequest(); } Actor Button::GetButtonImage() const @@ -714,6 +711,8 @@ void Button::SetSelectedImage( Actor image ) } OnSelectedImageSet(); + + RelayoutRequest(); } Actor Button::GetSelectedImage() const @@ -747,6 +746,8 @@ void Button::SetBackgroundImage( Actor image ) } OnBackgroundImageSet(); + + RelayoutRequest(); } Actor Button::GetBackgroundImage() const @@ -787,6 +788,8 @@ void Button::SetSelectedBackgroundImage( Actor image ) } OnSelectedBackgroundImageSet(); + + RelayoutRequest(); } Actor Button::GetSelectedBackgroundImage() const