return value;
}
-void PushButton::OnLabelSet()
+void PushButton::OnLabelSet( bool noPadding )
{
Actor& label = GetLabelActor();
if( label )
{
+ if( noPadding )
+ {
+ mLabelPadding = Padding( 0.0f, 0.0f, 0.0f, 0.0f );
+ }
+
Toolkit::TextLabel textLabel = Toolkit::TextLabel::DownCast( label );
if( textLabel )
{
RelayoutRequest();
}
+
void PushButton::ConfigureSizeNegotiationDimension( Dimension::Type dimension, const std::vector< Actor >& images, Actor& label )
{
ResizePolicy::Type imageResizePolicy = ResizePolicy::FILL_TO_PARENT;