From be0ade4350766cfbe76ac9b0ae863b471bd011ec Mon Sep 17 00:00:00 2001 From: Xavi Artigas Date: Tue, 17 Dec 2019 16:34:34 +0100 Subject: [PATCH] Adapt to latest Textbox changes --- apps/csharp/calculator/src/calculator.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/csharp/calculator/src/calculator.cs b/apps/csharp/calculator/src/calculator.cs index a9fa0463..f60f9bdc 100644 --- a/apps/csharp/calculator/src/calculator.cs +++ b/apps/csharp/calculator/src/calculator.cs @@ -125,8 +125,8 @@ public class Calculator : Efl.Csharp.Application // Therefore we create a more complex Efl.Ui.Text object and use it as content for the button. var label = new Efl.Ui.Textbox(table); label.Editable = false; - label.HorizontalAlign = 0.5; - label.VerticalAlign = 0.5; + label.TextHorizontalAlign = 0.5; + label.TextVerticalAlign = 0.5; label.Color = (r, g, b, 255); label.SetText(text); label.FontFamily = "Sans"; @@ -176,8 +176,8 @@ public class Calculator : Efl.Csharp.Application screen.Editable = false; screen.SelectionAllowed = false; table.PackTable(screen, 0, 0, 4, 1); - screen.HorizontalAlign = 0.9; - screen.VerticalAlign = 0.5; + screen.TextHorizontalAlign = 0.9; + screen.TextVerticalAlign = 0.5; screen.EffectType = Efl.TextStyleEffectType.Glow; screen.GlowColor = (128, 128, 128, 128); screen.ChangedEvent += ScreenChangedCb;