summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen/Native
diff options
context:
space:
mode:
authorSungtaek Hong <sth253.hong@samsung.com>2017-02-23 17:25:17 +0900
committerKangho Hur <kangho.hur@samsung.com>2017-10-23 13:34:35 +0900
commit8ff05dddb87948732de7b8d3dc041f7c472005f3 (patch)
treef3b87ee2c888a9b4a2a22b946a8dd7bcbb728333 /Xamarin.Forms.Platform.Tizen/Native
parentded3c27f9dd8fa3e81fe3da8fdd331840c2aea66 (diff)
downloadxamarin-forms-8ff05dddb87948732de7b8d3dc041f7c472005f3.tar.gz
xamarin-forms-8ff05dddb87948732de7b8d3dc041f7c472005f3.tar.bz2
xamarin-forms-8ff05dddb87948732de7b8d3dc041f7c472005f3.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>
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/Native')
-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");
}
- }
+ }
}