[NUI][Non-ACR][Add scrollablebase to fix text overflow] 93/265893/3
authorzhouleonlei <zhouleon.lei@samsung.com>
Mon, 1 Nov 2021 09:50:28 +0000 (17:50 +0800)
committerzhou lei <zhouleon.lei@samsung.com>
Mon, 1 Nov 2021 09:57:38 +0000 (09:57 +0000)
Add scrollableBase for TabView to fix the issue of text overflow
https://code.sec.samsung.net/jira/browse/TSDF-4066

Change-Id: I035275af0e92bd2aab2726ad6680ba56b22c3d6b

tct-suite-vs/Tizen.NUI.Manual.Tests/ManualTestPage.cs

index 8e94b13..53527a8 100755 (executable)
@@ -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;