Label: inform LineBreakMode to elm_label
authorSungtaek Hong <sth253.hong@samsung.com>
Thu, 23 Feb 2017 08:25:17 +0000 (17:25 +0900)
committerKangho Hur <kangho.hur@samsung.com>
Mon, 10 Jul 2017 02:11:25 +0000 (11:11 +0900)
 - When ellipsis/linewrap mode is set to elm_label
   signal is emitted to elm_label's resize_obj(edc)
   to change text attribute.
 - Sending signal logic similar to elm_label is added
   because Span directly sets text to resize_obj directly
   by style_user_push() and signal which should be
   emitted by elm_label is not sent.
 - This commit depends on
   https://review.tizen.org/gerrit/#/c/115950/

Change-Id: If40362986d8ec772ba353d2498deab89c4cbfd20
Signed-off-by: Sungtaek Hong <sth253.hong@samsung.com>
Xamarin.Forms.Platform.Tizen/Native/Label.cs

index 44eb5cb..911ca31 100644 (file)
@@ -342,6 +342,17 @@ namespace Xamarin.Forms.Platform.Tizen.Native
                        }
 
                        EdjeObject.EmitSignal(emission, "elm");
+
+                       switch (LineBreakMode)
+                       {
+                               case LineBreakMode.NoWrap:
+                                       emission = "elm,state,horizontal,expandable";
+                                       break;
+                               default:
+                                       emission = "elm,state,horizontal,fixed";
+                                       break;
+                       }
+                       EdjeObject.EmitSignal(emission, "elm");
                }
-       }
+    }
 }