X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Ftext-controls%2Ftext-selection-popup-impl.cpp;h=e2ee154d4ddde28178329ceee53a3cd26628620e;hb=c6032a09ae68156bcdaef2f09fbb4617245bc75f;hp=7347fd3e38f9123763d28fd46329baae296d0243;hpb=cd7d41bc8e0a0816da28401207091344fbbe0b2c;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/controls/text-controls/text-selection-popup-impl.cpp b/dali-toolkit/internal/controls/text-controls/text-selection-popup-impl.cpp index 7347fd3..e2ee154 100644 --- a/dali-toolkit/internal/controls/text-controls/text-selection-popup-impl.cpp +++ b/dali-toolkit/internal/controls/text-controls/text-selection-popup-impl.cpp @@ -20,6 +20,7 @@ // INTERNAL INCLUDES #include +#include #include #include @@ -423,13 +424,11 @@ Dali::Image TextSelectionPopup::GetPopupImage( PopupParts part ) // Both containers will be added to a button. Toolkit::TableView optionContainer = Toolkit::TableView::New( (showIcons)?2:1 , 1 ); - optionContainer.SetDrawMode( DrawMode::OVERLAY ); optionContainer.SetResizePolicy( ResizePolicy::USE_NATURAL_SIZE, Dimension::ALL_DIMENSIONS ); optionContainer.SetMinimumSize( Vector2( OPTION_MIN_WIDTH, 0 ) ); optionContainer.SetFitWidth( 0 ); Toolkit::TableView optionPressedContainer = Toolkit::TableView::New( (showIcons)?2:1 , 1 ); - optionPressedContainer.SetDrawMode( DrawMode::OVERLAY ); optionPressedContainer.SetResizePolicy( ResizePolicy::USE_NATURAL_SIZE, Dimension::ALL_DIMENSIONS ); optionPressedContainer.SetMinimumSize( Vector2( OPTION_MIN_WIDTH, 0 ) ); optionPressedContainer.SetFitWidth( 0 ); @@ -464,6 +463,8 @@ Dali::Image TextSelectionPopup::GetPopupImage( PopupParts part ) // 3. Create the icons ImageActor pressedIcon = ImageActor::New( iconImage ); ImageActor icon = ImageActor::New( iconImage ); + icon.SetSortModifier( DECORATION_DEPTH_INDEX - 1 ); + pressedIcon.SetSortModifier( DECORATION_DEPTH_INDEX - 1 ); icon.SetName("image-icon-2014"); icon.SetResizePolicy( ResizePolicy::USE_NATURAL_SIZE, Dimension::ALL_DIMENSIONS ); pressedIcon.SetResizePolicy( ResizePolicy::USE_NATURAL_SIZE, Dimension::ALL_DIMENSIONS ); @@ -481,7 +482,6 @@ Dali::Image TextSelectionPopup::GetPopupImage( PopupParts part ) option.SetName( name ); option.SetAnimationTime( 0.0f ); option.SetSize( OPTION_ICON_SIZE ); - option.SetRelayoutEnabled( false ); //option.ClickedSignal().Connect( this, &TextInputPopup::OnButtonPressed ); // 6. Set the normal option image. @@ -529,7 +529,6 @@ Dali::Image TextSelectionPopup::GetPopupImage( PopupParts part ) Actor scrollview = Actor::New(); //todo make a scrollview scrollview.SetResizePolicy( ResizePolicy::FIT_TO_CHILDREN, Dimension::ALL_DIMENSIONS ); scrollview.SetParentOrigin( ParentOrigin::CENTER ); - scrollview.SetRelayoutEnabled( true ); mTableOfButtons.SetResizePolicy( ResizePolicy::USE_NATURAL_SIZE, Dimension::ALL_DIMENSIONS ); mTableOfButtons.SetFitHeight( 0 ); @@ -545,6 +544,7 @@ Dali::Image TextSelectionPopup::GetPopupImage( PopupParts part ) void TextSelectionPopup::AddPopupOptions( bool createTail, bool showIcons, bool showCaptions ) { mContentSize = Vector2::ZERO; + // Add the options into the buttons container. // 1. Determine how many buttons are active and should be added to container. @@ -589,7 +589,7 @@ Dali::Image TextSelectionPopup::GetPopupImage( PopupParts part ) } TextSelectionPopup::TextSelectionPopup() -: Control( ControlBehaviour( CONTROL_BEHAVIOUR_NONE ) ), +: Control( ControlBehaviour( ControlBehaviour( ACTOR_BEHAVIOUR_NONE ) ) ), mMaxSize ( DEFAULT_POPUP_MAX_SIZE ), mVisiblePopUpSize( DEFAULT_POPUP_MAX_SIZE ), mRequiredPopUpSize( DEFAULT_POPUP_MAX_SIZE ),