1e41f4b71Sopenharmony_ci# ArkUI Subsystem Changelog 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ci 4e41f4b71Sopenharmony_ci## cl.arkui.1 Change in the Default Scrollbar State of \<List> and \<Gird> Components 5e41f4b71Sopenharmony_ci 6e41f4b71Sopenharmony_ciChanged the default state of the scrollbar in the **\<List>** and **\<Gird>** components from **BarState.Off** to **BarState.Auto**. 7e41f4b71Sopenharmony_ci 8e41f4b71Sopenharmony_ci**Change Impact** 9e41f4b71Sopenharmony_ci 10e41f4b71Sopenharmony_ciIn the scenario where the scrollbar status is not set in the **\<List>** and **\<Gird>** components: 11e41f4b71Sopenharmony_ci 12e41f4b71Sopenharmony_ciBefore change: 13e41f4b71Sopenharmony_ci 14e41f4b71Sopenharmony_ciThe scrollbar is not displayed. 15e41f4b71Sopenharmony_ci 16e41f4b71Sopenharmony_ciAfter change: 17e41f4b71Sopenharmony_ci 18e41f4b71Sopenharmony_ciThe scrollbar is displayed during scrolling and is hidden 2 seconds after the scrolling stops. 19e41f4b71Sopenharmony_ci 20e41f4b71Sopenharmony_ci**Key API/Component Changes** 21e41f4b71Sopenharmony_ci 22e41f4b71Sopenharmony_ci**scrollBar** attribute of the **\<List>** and **\<Gird>** components: 23e41f4b71Sopenharmony_ci- [List](../../../application-dev/reference/arkui-ts/ts-container-list.md#attributes) 24e41f4b71Sopenharmony_ci- [Grid](../../../application-dev/reference/arkui-ts/ts-container-grid.md#attributes) 25e41f4b71Sopenharmony_ci 26e41f4b71Sopenharmony_ci**Adaptation Guide** 27e41f4b71Sopenharmony_ci 28e41f4b71Sopenharmony_ciIn scenarios where the scrollbar is not required, set the **scrollBar** attribute of the **\<List>** and **\<Gird>** components to **BarState.Off**. 29e41f4b71Sopenharmony_ci 30e41f4b71Sopenharmony_ciThe code snippet is as follows: 31e41f4b71Sopenharmony_ci```ts 32e41f4b71Sopenharmony_ci// xxx.ets 33e41f4b71Sopenharmony_ci@Entry 34e41f4b71Sopenharmony_ci@Component 35e41f4b71Sopenharmony_cistruct ListItemExample { 36e41f4b71Sopenharmony_ci private arr: number[] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] 37e41f4b71Sopenharmony_ci 38e41f4b71Sopenharmony_ci build() { 39e41f4b71Sopenharmony_ci Column() { 40e41f4b71Sopenharmony_ci List({ space: 20, initialIndex: 0 }) { 41e41f4b71Sopenharmony_ci ForEach(this.arr, (item) => { 42e41f4b71Sopenharmony_ci ListItem() { 43e41f4b71Sopenharmony_ci Text('' + item) 44e41f4b71Sopenharmony_ci .width('100%').height(100).fontSize(16) 45e41f4b71Sopenharmony_ci .textAlign(TextAlign.Center).borderRadius(10).backgroundColor(0xFFFFFF) 46e41f4b71Sopenharmony_ci } 47e41f4b71Sopenharmony_ci }, item => item) 48e41f4b71Sopenharmony_ci } 49e41f4b71Sopenharmony_ci .width('90%') 50e41f4b71Sopenharmony_ci .scrollBar(BarState.Off) 51e41f4b71Sopenharmony_ci }.width('100%').height('100%').backgroundColor(0xDCDCDC).padding({ top: 5 }) 52e41f4b71Sopenharmony_ci } 53e41f4b71Sopenharmony_ci} 54e41f4b71Sopenharmony_ci``` 55e41f4b71Sopenharmony_ci 56e41f4b71Sopenharmony_ci## cl.arkui.2 Fixing of the Stack Layout Issue 57e41f4b71Sopenharmony_ci 58e41f4b71Sopenharmony_ciFixed the issue where child components in the [\<Stack>](../../../application-dev/reference/arkui-ts/ts-container-stack.md) container does not follow the **alignContent** settings when the child components stretch beyond the container. 59e41f4b71Sopenharmony_ciExample: 60e41f4b71Sopenharmony_ci 61e41f4b71Sopenharmony_ci```ts 62e41f4b71Sopenharmony_ci@Entry 63e41f4b71Sopenharmony_ci@Component 64e41f4b71Sopenharmony_cistruct StackExample { 65e41f4b71Sopenharmony_ci build() { 66e41f4b71Sopenharmony_ci Stack({alignContent:Alignment.TopEnd}){ 67e41f4b71Sopenharmony_ci Text('First child, show in bottom') 68e41f4b71Sopenharmony_ci .width(200).height(200).backgroundColor(0xd2cab3).margin(10) 69e41f4b71Sopenharmony_ci }.width(150).height(150).backgroundColor(Color.Pink).margin(100) 70e41f4b71Sopenharmony_ci } 71e41f4b71Sopenharmony_ci} 72e41f4b71Sopenharmony_ci``` 73e41f4b71Sopenharmony_ciBefore: Child components are not arranged based on **alignContent:Alignment.TopEnd**. 74e41f4b71Sopenharmony_ci 75e41f4b71Sopenharmony_ci 76e41f4b71Sopenharmony_ciAfter: Child components are arranged based on **alignContent:Alignment.TopEnd**. 77e41f4b71Sopenharmony_ci 78e41f4b71Sopenharmony_ci 79e41f4b71Sopenharmony_ci 80e41f4b71Sopenharmony_ci**Change Impact** 81e41f4b71Sopenharmony_ci 82e41f4b71Sopenharmony_ci1. When the **\<Stack>** component contains a child component larger than itself, adaptation to the application is required. 83e41f4b71Sopenharmony_ci2. The previous workaround – **Offset** and **translate** settings for the child component – must be removed. 84e41f4b71Sopenharmony_ci 85e41f4b71Sopenharmony_ci**Adaptation Guide** 86e41f4b71Sopenharmony_ci 87e41f4b71Sopenharmony_ciRemove the **Offset** and **translate** settings for the child component. 88e41f4b71Sopenharmony_ci 89e41f4b71Sopenharmony_ci## cl.arkui.3 Change in the \<Button> Component Hover Effect 90e41f4b71Sopenharmony_ci 91e41f4b71Sopenharmony_ciChanged the hover effect of the **\<Button>** component from scale-up by 100% to 105% to overlay of 0% to 5% opacity. Changed the pressed effect of the component to overlay of 5% to 10% opacity. 92e41f4b71Sopenharmony_ci 93e41f4b71Sopenharmony_ci**Change Impact** 94e41f4b71Sopenharmony_ci 95e41f4b71Sopenharmony_ciThe visual effect of the **\<Button>** is affected. 96