1e41f4b71Sopenharmony_ci# ArkUI Subsystem Changelog
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci## cl.arkui.1 Change in the Default Scrollbar State of \<List> and \<Gird> Components
4e41f4b71Sopenharmony_ci
5e41f4b71Sopenharmony_ciChanged the default state of the scrollbar in the **\<List>** and **\<Gird>** components from **BarState.Off** to **BarState.Auto**.
6e41f4b71Sopenharmony_ci
7e41f4b71Sopenharmony_ci**Change Impact**
8e41f4b71Sopenharmony_ci
9e41f4b71Sopenharmony_ciIn the scenario where the scrollbar status is not set in the **\<List>** and **\<Gird>** components:
10e41f4b71Sopenharmony_ci
11e41f4b71Sopenharmony_ci- Before change:
12e41f4b71Sopenharmony_ci
13e41f4b71Sopenharmony_ci  The scrollbar is not displayed.
14e41f4b71Sopenharmony_ci
15e41f4b71Sopenharmony_ci- After change:
16e41f4b71Sopenharmony_ci
17e41f4b71Sopenharmony_ci  The scrollbar is displayed during scrolling and is hidden 2 seconds after the scrolling stops.
18e41f4b71Sopenharmony_ci
19e41f4b71Sopenharmony_ci**Key API/Component Changes**
20e41f4b71Sopenharmony_ci
21e41f4b71Sopenharmony_ci**scrollBar** attribute of the **\<List>** and **\<Gird>** components:
22e41f4b71Sopenharmony_ci- [List](../../../application-dev/reference/arkui-ts/ts-container-list.md#attributes)
23e41f4b71Sopenharmony_ci- [Grid](../../../application-dev/reference/arkui-ts/ts-container-grid.md#attributes)
24e41f4b71Sopenharmony_ci
25e41f4b71Sopenharmony_ci**Adaptation Guide**
26e41f4b71Sopenharmony_ci
27e41f4b71Sopenharmony_ciIn scenarios where the scrollbar is not required, set the **scrollBar** attribute of the **\<List>** and **\<Gird>** components to **BarState.Off**.
28e41f4b71Sopenharmony_ci
29e41f4b71Sopenharmony_ciThe code snippet is as follows:
30e41f4b71Sopenharmony_ci```ts
31e41f4b71Sopenharmony_ci// xxx.ets
32e41f4b71Sopenharmony_ci@Entry
33e41f4b71Sopenharmony_ci@Component
34e41f4b71Sopenharmony_cistruct ListItemExample {
35e41f4b71Sopenharmony_ci  private arr: number[] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
36e41f4b71Sopenharmony_ci
37e41f4b71Sopenharmony_ci  build() {
38e41f4b71Sopenharmony_ci    Column() {
39e41f4b71Sopenharmony_ci      List({ space: 20, initialIndex: 0 }) {
40e41f4b71Sopenharmony_ci        ForEach(this.arr, (item) => {
41e41f4b71Sopenharmony_ci          ListItem() {
42e41f4b71Sopenharmony_ci            Text('' + item)
43e41f4b71Sopenharmony_ci              .width('100%').height(100).fontSize(16)
44e41f4b71Sopenharmony_ci              .textAlign(TextAlign.Center).borderRadius(10).backgroundColor(0xFFFFFF)
45e41f4b71Sopenharmony_ci          }
46e41f4b71Sopenharmony_ci        }, item => item)
47e41f4b71Sopenharmony_ci      }
48e41f4b71Sopenharmony_ci      .width('90%')
49e41f4b71Sopenharmony_ci      .scrollBar(BarState.Off)
50e41f4b71Sopenharmony_ci    }.width('100%').height('100%').backgroundColor(0xDCDCDC).padding({ top: 5 })
51e41f4b71Sopenharmony_ci  }
52e41f4b71Sopenharmony_ci}
53e41f4b71Sopenharmony_ci```
54e41f4b71Sopenharmony_ci## cl.arkui.2 Change of Effect for When Both Margin and Margin Are Set
55e41f4b71Sopenharmony_ci
56e41f4b71Sopenharmony_ciWhen a component has both **margin** and **position** attributes set, the settings for both attributes take effect, instead of only the settings of **position**.
57e41f4b71Sopenharmony_ci
58e41f4b71Sopenharmony_ci**Change Impact**
59e41f4b71Sopenharmony_ci
60e41f4b71Sopenharmony_ciWhen a component has both **margin** and **position** attributes set, it is moved to the specified position with the extra margins.
61e41f4b71Sopenharmony_ci
62e41f4b71Sopenharmony_ci**Key API/Component Changes**
63e41f4b71Sopenharmony_ci
64e41f4b71Sopenharmony_ci**margin** and **position** attributes:
65e41f4b71Sopenharmony_ci- [margin](../../../application-dev/reference/arkui-ts/ts-universal-attributes-size.md#attributes)
66e41f4b71Sopenharmony_ci- [position](../../../application-dev/reference/arkui-ts/ts-universal-attributes-location.md#attributes)
67e41f4b71Sopenharmony_ci
68e41f4b71Sopenharmony_ci**Adaptation Guide**
69e41f4b71Sopenharmony_ci
70e41f4b71Sopenharmony_ciIf both **margin** and **position** are set for a component, or if **position** is set for a component that has default margin settings (for example, the **\<Checkbox>** component), you are advised to adjust the margin to ensure that the component is in an appropriate position.
71