X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fbuttons%2Fcheck-box-button-impl.cpp;h=5bf5344fae42fd085f991a60ddacbef15b0c1310;hb=refs%2Fchanges%2F49%2F88249%2F1;hp=44d62a51a7a5c5d99af5ec0ebddf0b4ff064da70;hpb=4b3b7f4169b809c086e09323960271f187e3558a;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/controls/buttons/check-box-button-impl.cpp b/dali-toolkit/internal/controls/buttons/check-box-button-impl.cpp index 44d62a5..5bf5344 100644 --- a/dali-toolkit/internal/controls/buttons/check-box-button-impl.cpp +++ b/dali-toolkit/internal/controls/buttons/check-box-button-impl.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * Copyright (c) 2016 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. @@ -23,8 +23,9 @@ #include //INTERNAL INCLUDES -#include #include +#include +#include #include namespace Dali @@ -93,12 +94,14 @@ void CheckBoxButton::SetTickUVEffect() Property::Map shaderMap = CreateImageRegionEffect(); imageView.SetProperty( Toolkit::ImageView::Property::IMAGE, shaderMap ); - GetImpl( imageView ).SetDepthIndex( DECORATION_DEPTH_INDEX ); + GetImpl( imageView ).SetDepthIndex( DepthIndex::DECORATION ); } } -void CheckBoxButton::OnButtonInitialize() +void CheckBoxButton::OnInitialize() { + Button::OnInitialize(); + // Wrap around all children Self().SetResizePolicy( ResizePolicy::FIT_TO_CHILDREN, Dimension::ALL_DIMENSIONS );