summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSungtaek Hong <sth253.hong@samsung.com>2017-02-23 17:25:17 +0900
committerSeungkeun Lee <sngn.lee@samsung.com>2017-05-11 15:21:32 +0900
commit2365bcd68e938dda93d374dd715c07bd7e4f97b7 (patch)
tree6e74ea1b39b0bbb6a5b6d11f70dd7e683696c729
parent803e69866c687c3eefba4160068dd9eb38bcf1a4 (diff)
downloadxamarin-forms-2365bcd68e938dda93d374dd715c07bd7e4f97b7.tar.gz
xamarin-forms-2365bcd68e938dda93d374dd715c07bd7e4f97b7.tar.bz2
xamarin-forms-2365bcd68e938dda93d374dd715c07bd7e4f97b7.zip
Label: inform LineBreakMode to elm_label
- 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>
-rw-r--r--Xamarin.Forms.Platform.Tizen/Native/Label.cs13
1 files changed, 12 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Native/Label.cs b/Xamarin.Forms.Platform.Tizen/Native/Label.cs
index 44eb5cb9..911ca317 100644
--- a/Xamarin.Forms.Platform.Tizen/Native/Label.cs
+++ b/Xamarin.Forms.Platform.Tizen/Native/Label.cs
@@ -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");
}
- }
+ }
}