[Tizen] We also need to change the cursor position when the layout direction changes.
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / text / text-controller.cpp
index 880c0c4..a3e122e 100755 (executable)
@@ -2569,6 +2569,11 @@ Controller::UpdateTextType Controller::Relayout( const Size& size )
                                                               REORDER                   |
                                                               ALIGN );
       mImpl->mLayoutDirection = layoutDirection;
+      if( mImpl->mEventData )
+      {
+        mImpl->mEventData->mUpdateAlignment = true;
+        mImpl->mEventData->mUpdateCursorPosition = true;
+      }
     }
   }