[NUI][AT-SPI] Apply AccessibilityHidden for Scrollbar
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Thu, 21 Apr 2022 07:45:26 +0000 (16:45 +0900)
committerJaehyun Cho <jaehyun0cho@gmail.com>
Thu, 21 Apr 2022 10:39:37 +0000 (19:39 +0900)
- AT-SPI2 tree shows Scrollbar, Control, and ImageView when Scrollbar
class is just created.
- `Control` is trackView in Scrollbar, but is not necessary for at-spi
tree. So, it can be hidden in the tree.
- Applied AccessibilityHidden property to a View.

Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
src/Tizen.NUI.Components/Controls/Scrollbar.cs

index c559c5f..d5629ad 100755 (executable)
@@ -1,5 +1,5 @@
 /*
- * Copyright(c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2022 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -270,7 +270,8 @@ namespace Tizen.NUI.Components
             trackView = new View()
             {
                 PositionUsesPivotPoint = true,
-                BackgroundColor = new Color(1.0f, 1.0f, 1.0f, 0.15f)
+                BackgroundColor = new Color(1.0f, 1.0f, 1.0f, 0.15f),
+                AccessibilityHidden = true
             };
             Add(trackView);