Merge "[Tizen] Relayout again for LTR / RTL order when layout direction is changed... accepted/tizen/5.0/unified/20181120.061303 submit/tizen_5.0/20181119.061314
authorjoogab yun <joogab.yun@samsung.com>
Mon, 19 Nov 2018 06:06:56 +0000 (06:06 +0000)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Mon, 19 Nov 2018 06:06:56 +0000 (06:06 +0000)
1  2 
dali-toolkit/internal/text/text-controller.cpp

@@@ -2429,7 -2429,6 +2429,7 @@@ void Controller::KeyboardFocusGainEvent
        mImpl->ChangeState( EventData::EDITING );
        mImpl->mEventData->mUpdateCursorPosition = true; //If editing started without tap event, cursor update must be triggered.
        mImpl->mEventData->mUpdateInputStyle = true;
 +      mImpl->mEventData->mScrollAfterUpdatePosition = true;
      }
      mImpl->NotifyInputMethodContextMultiLineStatus();
      if( mImpl->IsShowingPlaceholderText() )
@@@ -4078,6 -4077,14 +4078,14 @@@ bool Controller::ShouldClearFocusOnEsca
    return mImpl->mShouldClearFocusOnEscape;
  }
  
+ void Controller::UpdateLayoutDirectionChanged(  Dali::LayoutDirection::Type type )
+ {
+   mImpl->mLayoutDirection = type;
+   mImpl->mOperationsPending = static_cast<OperationsMask>( mImpl->mOperationsPending |
+                                                                            BIDI_INFO );
+   mImpl->RequestRelayout();
+ }
  // private : Private contructors & copy operator.
  
  Controller::Controller()