From d5e79ad23ed12274a38f9b7b24e7f09f2a120762 Mon Sep 17 00:00:00 2001 From: zhouleonlei Date: Mon, 1 Nov 2021 17:50:28 +0800 Subject: [PATCH] [NUI][Non-ACR][Add scrollablebase to fix text overflow] Add scrollableBase for TabView to fix the issue of text overflow https://code.sec.samsung.net/jira/browse/TSDF-4066 Change-Id: I035275af0e92bd2aab2726ad6680ba56b22c3d6b --- .../Tizen.NUI.Manual.Tests/ManualTestPage.cs | 29 +++++++++++++++++----- 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/tct-suite-vs/Tizen.NUI.Manual.Tests/ManualTestPage.cs b/tct-suite-vs/Tizen.NUI.Manual.Tests/ManualTestPage.cs index 8e94b13..53527a8 100755 --- a/tct-suite-vs/Tizen.NUI.Manual.Tests/ManualTestPage.cs +++ b/tct-suite-vs/Tizen.NUI.Manual.Tests/ManualTestPage.cs @@ -132,6 +132,7 @@ namespace Tizen.NUI.Tests private FlexibleView _initList; private ListBridge _adapter; private TableView _detailList; + private ScrollableBase _scrollableBase; private View _buttonContainer; private View _buttonContainer2; private TableView _firstPageContainer; @@ -411,14 +412,20 @@ namespace Tizen.NUI.Tests void InitializeDetailPage() { + _scrollableBase = new ScrollableBase + { + Size = new Size(Window.Instance.Size.Width * 0.9739f, Window.Instance.Size.Height * 0.6629f), + ScrollingDirection = ScrollableBase.Direction.Vertical, + }; _detailList = new TableView(23, 1); _detailList.Focusable = true; - _detailList.Size = new Size(Window.Instance.Size.Width * 0.9739f, Window.Instance.Size.Height * 0.4629f); + _detailList.Size = new Size(Window.Instance.Size.Width * 0.9739f, Window.Instance.Size.Height * 0.9f); _detailList.ParentOrigin = Position.ParentOriginTopLeft; _detailList.PivotPoint = PivotPoint.TopLeft; _detailList.Position = new Position(0.0f, 0.0f, 0.0f); CreateDetailList(); - _detailView.Add(_detailList); + _scrollableBase.Add(_detailList); + _detailView.Add(_scrollableBase); //To Place the function button, such as PASS, FAIL..... _buttonContainer = new View(); @@ -454,20 +461,30 @@ namespace Tizen.NUI.Tests //PostConditions void CreateTestCase() { - if(_detailList) + if (_detailList != null && _scrollableBase != null) { - _detailView.Remove(_detailList); + _detailView.Remove(_scrollableBase); + _scrollableBase.Remove(_detailList); _detailList.Dispose(); + _detailList = null; + _scrollableBase.Dispose(); + _scrollableBase = null; } Tizen.Log.Fatal("NUI", "Print the CurrentTCNum here::" + _currentTCNum); + _scrollableBase = new ScrollableBase + { + Size = new Size(Window.Instance.Size.Width * 0.9739f, Window.Instance.Size.Height * 0.6629f), + ScrollingDirection = ScrollableBase.Direction.Vertical, + }; _detailList = new TableView(10, 1); _detailList.Focusable = true; - _detailList.Size = new Size(Window.Instance.Size.Width * 0.9739f, Window.Instance.Size.Height * 0.3703f); + _detailList.Size = new Size(Window.Instance.Size.Width * 0.9739f, Window.Instance.Size.Height * 0.9f); _detailList.ParentOrigin = Position.ParentOriginTopLeft; _detailList.PivotPoint = PivotPoint.TopLeft; _detailList.Position = new Position(0.0f, 0.0f, 0.0f); CreateDetailList(); - _detailView.Add(_detailList); + _scrollableBase.Add(_detailList); + _detailView.Add(_scrollableBase); if (_notRun) { _notRun.Text = _listItem[_currentTCNum].Result; -- 2.7.4