[Tizen] We also need to change the cursor position when the layout direction changes. 52/223152/1
authorJoogab Yun <joogab.yun@samsung.com>
Thu, 23 Jan 2020 10:03:23 +0000 (19:03 +0900)
committerJoogab Yun <joogab.yun@samsung.com>
Thu, 23 Jan 2020 10:03:23 +0000 (19:03 +0900)
Change-Id: Ic375712defefcac598ac4d23e20f35acc46b94e5

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;
+      }
     }
   }