Fix UI issue : Set text after setting style 95/158695/3
authorYunjin Lee <yunjin-.lee@samsung.com>
Thu, 2 Nov 2017 11:44:12 +0000 (20:44 +0900)
committerYunjin Lee <yunjin-.lee@samsung.com>
Tue, 28 Nov 2017 04:46:58 +0000 (13:46 +0900)
- Set text after setting object's style.
  Otherwise, long text of wearable UI is displayed in 1 line
  and it cuts head and tail of the string hence
  the user could not see whole string.
  Fix it to be displayed in multiline.

Change-Id: I749c04d6e1a7b49ebf4131adb3d39288ee907685
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
src/notification-daemon/ui/PopupCheckMobile.h
src/notification-daemon/ui/PopupCheckWearable.h

index 3882343addd670940185467252910f95eda501f8..5b2472519e092cfdc864d10e5c8e6f4875a8bbd4 100644 (file)
@@ -56,9 +56,9 @@ public:
             ALOGE("EFL : Failed to add content");
             throw Exception("Enlightenment failed");
         }
-        elm_object_text_set(m_content, m_msg.c_str());
         elm_object_style_set(m_content, "popup/default");
         elm_label_line_wrap_set(m_content, ELM_WRAP_MIXED);
+        elm_object_text_set(m_content, m_msg.c_str());
         evas_object_size_hint_weight_set(m_content, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
         evas_object_size_hint_align_set(m_content, EVAS_HINT_FILL, EVAS_HINT_FILL);
         elm_object_part_content_set(m_layout, "elm.swallow.content", m_content);
index a58692c1067fd582de7e5ea748e0771a3d55fbae..d59515a7df7b33867d143c2014461794ad1265fd 100644 (file)
@@ -63,9 +63,9 @@ public:
             ALOGE("EFL : Failed to add content");
             throw Exception("Enlightenment failed");
         }
-        elm_object_text_set(m_content, m_msg.c_str());
         elm_object_style_set(m_content, "popup/default");
         elm_label_line_wrap_set(m_content, ELM_WRAP_MIXED);
+        elm_object_text_set(m_content, m_msg.c_str());
         evas_object_size_hint_weight_set(m_content, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
         evas_object_size_hint_align_set(m_content, EVAS_HINT_FILL, EVAS_HINT_FILL);
         elm_object_part_content_set(m_layoutInner, "label", m_content);