Revert "[Tizen] Fix TextChanged signal."
authorShinwoo Kim <cinoo.kim@samsung.com>
Tue, 1 Jun 2021 02:08:17 +0000 (11:08 +0900)
committerShinwoo Kim <cinoo.kim@samsung.com>
Tue, 1 Jun 2021 02:08:17 +0000 (11:08 +0900)
This reverts commit 5511b058e12120555b4b3c3b35b1cf37c52a2990.

dali-toolkit/internal/controls/text-controls/text-editor-impl.cpp
dali-toolkit/internal/controls/text-controls/text-field-impl.cpp

index 48e0118..792cd7d 100644 (file)
@@ -1470,12 +1470,6 @@ void TextEditor::OnRelayout(const Vector2& size, RelayoutContainer& container)
     ResizeActor(mActiveLayer, contentSize);
   }
 
-  // If there is text changed, callback is called.
-  if(mTextChanged)
-  {
-    EmitTextChangedSignal();
-  }
-
   const Text::Controller::UpdateTextType updateTextType = mController->Relayout(contentSize, layoutDirection);
 
   if((Text::Controller::NONE_UPDATED != updateTextType) ||
@@ -1495,6 +1489,12 @@ void TextEditor::OnRelayout(const Vector2& size, RelayoutContainer& container)
     }
 
     RenderText(updateTextType);
+
+    // If there is text changed, callback is called.
+    if(mTextChanged)
+    {
+      EmitTextChangedSignal();
+    }
   }
 
   // The text-editor emits signals when the input style changes. These changes of style are
index dd117df..ceb40f9 100644 (file)
@@ -1409,12 +1409,6 @@ void TextField::OnRelayout(const Vector2& size, RelayoutContainer& container)
     ResizeActor(mActiveLayer, contentSize);
   }
 
-  // If there is text changed, callback is called.
-  if(mTextChanged)
-  {
-    EmitTextChangedSignal();
-  }
-
   const Text::Controller::UpdateTextType updateTextType = mController->Relayout(contentSize, layoutDirection);
 
   if((Text::Controller::NONE_UPDATED != updateTextType) ||
@@ -1434,6 +1428,12 @@ void TextField::OnRelayout(const Vector2& size, RelayoutContainer& container)
     }
 
     RenderText(updateTextType);
+
+    // If there is text changed, callback is called.
+    if(mTextChanged)
+    {
+      EmitTextChangedSignal();
+    }
   }
 
   // The text-field emits signals when the input style changes. These changes of style are