From a0681edf6e2cc9019aacd33de947ac1d133d9cb3 Mon Sep 17 00:00:00 2001 From: "dongsug.song" Date: Mon, 18 Sep 2023 13:27:40 +0900 Subject: [PATCH] [Non-ACR][WindowSystem][Fix large text size problem in NUI.WindowSystem.Manual test of emulator] Change-Id: I019708862714d41e2b41c9ad85205b3cf39e0c9c --- .../Tizen.NUI.WindowSystem.Manual.Tests/ManualTestPage.cs | 8 ++++++++ tct-suite-vs/Tizen.NUI.WindowSystem.Manual.Tests/Utils.cs | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/tct-suite-vs/Tizen.NUI.WindowSystem.Manual.Tests/ManualTestPage.cs b/tct-suite-vs/Tizen.NUI.WindowSystem.Manual.Tests/ManualTestPage.cs index 4aa386c..15fe19a 100755 --- a/tct-suite-vs/Tizen.NUI.WindowSystem.Manual.Tests/ManualTestPage.cs +++ b/tct-suite-vs/Tizen.NUI.WindowSystem.Manual.Tests/ManualTestPage.cs @@ -243,6 +243,10 @@ namespace Tizen.NUI.WindowSystem.Tests btn.Text = text; btn.PointSize = _pointSize; float buttonWidth = ManualTest.IsMobile() ? Window.Instance.Size.Width * 0.18f : Window.Instance.Size.Width * 0.06f; + if (ManualTest.IsEmulator()) + { + buttonWidth = Window.Instance.Size.Width * 0.18f; + } btn.Size = new Size(buttonWidth, Window.Instance.Size.Height * 0.046f); btn.TextColor = new Color(0, 0, 0, 1); btn.ImageShadow = new ImageShadow @@ -515,6 +519,10 @@ namespace Tizen.NUI.WindowSystem.Tests _notRun.PointSize = _pointSize; _notRun.Text = "Not Run"; float buttonWidth = ManualTest.IsMobile() ? Window.Instance.Size.Width * 0.18f : Window.Instance.Size.Width * 0.06f; + if (ManualTest.IsEmulator()) + { + buttonWidth = Window.Instance.Size.Width * 0.18f; + } _notRun.Size = new Size(buttonWidth, Window.Instance.Size.Height * 0.046f); _passButton = new Button(); diff --git a/tct-suite-vs/Tizen.NUI.WindowSystem.Manual.Tests/Utils.cs b/tct-suite-vs/Tizen.NUI.WindowSystem.Manual.Tests/Utils.cs index bb0433a..e1066c4 100644 --- a/tct-suite-vs/Tizen.NUI.WindowSystem.Manual.Tests/Utils.cs +++ b/tct-suite-vs/Tizen.NUI.WindowSystem.Manual.Tests/Utils.cs @@ -239,6 +239,10 @@ namespace Tizen.NUI.WindowSystem.Tests retValue = 20.0f; break; } + if (ManualTest.IsEmulator()) + { + retValue = 5.0f; + } return retValue; } -- 2.7.4