X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=base%2Fdali-toolkit%2Finternal%2Fcontrols%2Fbuttons%2Fpush-button-impl.cpp;h=ee89ab9691cb70aea9cf0f6eb4124c5bb445618d;hp=9f8452ca3df1aa03e09f9c1c873168be753b6e9e;hb=93fb6a1d3dc8872275bde30ef6a05407a67d694c;hpb=7957e6e4dd4c6f97a7296d3125c7410a4b6bc5d7 diff --git a/base/dali-toolkit/internal/controls/buttons/push-button-impl.cpp b/base/dali-toolkit/internal/controls/buttons/push-button-impl.cpp index 9f8452c..ee89ab9 100644 --- a/base/dali-toolkit/internal/controls/buttons/push-button-impl.cpp +++ b/base/dali-toolkit/internal/controls/buttons/push-button-impl.cpp @@ -27,7 +27,6 @@ // INTERNAL INCLUDES #include "push-button-default-painter-impl.h" -#include #include namespace Dali @@ -324,9 +323,7 @@ Actor PushButton::GetDimmedImage() const void PushButton::SetLabelText( const std::string& text ) { - Toolkit::TextView textView ( Toolkit::TextView::New( text ) ); - textView.SetWidthExceedPolicy( Toolkit::TextView::ShrinkToFit ); // Make sure our text always fits inside the button - SetLabelText( textView ); + // TODO } void PushButton::SetLabelText( Actor text ) @@ -758,23 +755,6 @@ Vector3 PushButton::GetNaturalSize() size.height = std::max( size.height, imageSize.height ); } } - - // If label, test against it's size - Toolkit::TextView textView = Toolkit::TextView::DownCast( mLabel ); - if( textView ) - { - Vector3 textViewSize = textView.GetNaturalSize(); - - if( widthIsZero ) - { - size.width = std::max( size.width, textViewSize.width + TEXT_PADDING * 2.0f ); - } - - if( heightIsZero ) - { - size.height = std::max( size.height, textViewSize.height + TEXT_PADDING * 2.0f ); - } - } } return size;