summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeungkeun Lee <sngn.lee@samsung.com>2017-04-05 04:38:22 (GMT)
committerSeungkeun Lee <sngn.lee@samsung.com>2017-04-05 04:38:22 (GMT)
commit2722ecf0e021b81fccc02fefe8247bc2a4122770 (patch)
treea2d93a6e87aec4a0fb6f548365c53f92c23cfe4f
parent5e828471918bb78da16d28a640a04edc7ed7019b (diff)
downloadxamarin-forms-2722ecf0e021b81fccc02fefe8247bc2a4122770.zip
xamarin-forms-2722ecf0e021b81fccc02fefe8247bc2a4122770.tar.gz
xamarin-forms-2722ecf0e021b81fccc02fefe8247bc2a4122770.tar.bz2
Remove VerticalTextAlignment functionality in Labelrefs/changes/35/123235/1
- EFL dose not support yet - Remove VerticalTextAlignment property in Native.Span it was wrong implemented, valign in EFL is semantically different from Xamarin.Forms VerticalTextAlignment - If provide VerticalTextAlignment API in EFL, this feature need to reimplement Change-Id: I502700db74c7410529e46898578640abbd1253ef
-rw-r--r--Xamarin.Forms.Platform.Tizen/Native/Label.cs16
-rw-r--r--Xamarin.Forms.Platform.Tizen/Native/Span.cs26
2 files changed, 3 insertions, 39 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Native/Label.cs b/Xamarin.Forms.Platform.Tizen/Native/Label.cs
index b81a24e..44eb5cb 100644
--- a/Xamarin.Forms.Platform.Tizen/Native/Label.cs
+++ b/Xamarin.Forms.Platform.Tizen/Native/Label.cs
@@ -243,19 +243,9 @@ namespace Xamarin.Forms.Platform.Tizen.Native
/// <value>The vertical text alignment.</value>
public TextAlignment VerticalTextAlignment
{
- get
- {
- return _span.VerticalTextAlignment;
- }
-
- set
- {
- if (value != _span.VerticalTextAlignment)
- {
- _span.VerticalTextAlignment = value;
- ApplyTextAndStyle();
- }
- }
+ // TODO. need to EFL new API
+ get;
+ set;
}
/// <summary>
diff --git a/Xamarin.Forms.Platform.Tizen/Native/Span.cs b/Xamarin.Forms.Platform.Tizen/Native/Span.cs
index 99fe008..2f26649 100644
--- a/Xamarin.Forms.Platform.Tizen/Native/Span.cs
+++ b/Xamarin.Forms.Platform.Tizen/Native/Span.cs
@@ -95,12 +95,6 @@ namespace Xamarin.Forms.Platform.Tizen.Native
public TextAlignment HorizontalTextAlignment { get; set; }
/// <summary>
- /// Gets or sets the vertical alignment mode for the text.
- /// See <see cref="TextAlignment"/> for information about TextAlignment.
- /// </summary>
- public TextAlignment VerticalTextAlignment { get; set; }
-
- /// <summary>
/// Gets or sets the value that indicates whether the text has underline.
/// </summary>
public bool Underline { get; set; }
@@ -123,7 +117,6 @@ namespace Xamarin.Forms.Platform.Tizen.Native
ForegroundColor = EColor.Default;
BackgroundColor = EColor.Default;
HorizontalTextAlignment = TextAlignment.None;
- VerticalTextAlignment = TextAlignment.None;
LineBreakMode = LineBreakMode.None;
Underline = false;
Strikethrough = false;
@@ -238,25 +231,6 @@ namespace Xamarin.Forms.Platform.Tizen.Native
break;
}
- switch (VerticalTextAlignment)
- {
- case TextAlignment.Auto:
- case TextAlignment.Start:
- _formattingString.Append("valign=top ");
- break;
-
- case TextAlignment.End:
- _formattingString.Append("valign=bottom ");
- break;
-
- case TextAlignment.Center:
- _formattingString.Append("valign=middle ");
- break;
-
- case TextAlignment.None:
- break;
- }
-
switch (LineBreakMode)
{
case LineBreakMode.NoWrap: