/*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Toolkit::ImageView indicator = Toolkit::ImageView::New( DEFAULT_INDICATOR_IMAGE_PATH );
indicator.SetParentOrigin( ParentOrigin::TOP_LEFT );
indicator.SetAnchorPoint( AnchorPoint::TOP_LEFT );
-
+ indicator.SetStyleName( "ScrollBarIndicator" );
SetScrollIndicator(indicator);
}
Self().Remove( mIndicator );
}
mIndicator = indicator;
+
+ Toolkit::Control control = Toolkit::Control::DownCast( mIndicator );
+ if( control )
+ {
+ control.SetStyleName( "ScrollBarIndicator" );
+ }
+
mIndicatorFirstShow = true;
Self().Add( mIndicator );
{
mIndicator.SetSize(size.width, mIndicatorFixedHeight);
}
+
+ Control::OnSizeSet( size );
}
void ScrollBar::SetScrollDirection( Toolkit::ScrollBar::Direction direction )