diff --git a/en/application-dev/reference/arkui-ts/figures/en-us_image_0000001232775585.gif b/en/application-dev/reference/arkui-ts/figures/en-us_image_0000001232775585.gif new file mode 100644 index 0000000000000000000000000000000000000000..36e5cf928d08d719eab8bb0c417da0bc23472798 Binary files /dev/null and b/en/application-dev/reference/arkui-ts/figures/en-us_image_0000001232775585.gif differ diff --git a/en/application-dev/reference/arkui-ts/figures/en-us_image_0000001256978369.gif b/en/application-dev/reference/arkui-ts/figures/en-us_image_0000001256978369.gif deleted file mode 100644 index 070ae9d042d5211b2ccc6c187ec0f87a90d2c963..0000000000000000000000000000000000000000 Binary files a/en/application-dev/reference/arkui-ts/figures/en-us_image_0000001256978369.gif and /dev/null differ diff --git a/en/application-dev/reference/arkui-ts/ts-basic-components-scrollbar.md b/en/application-dev/reference/arkui-ts/ts-basic-components-scrollbar.md index 962a2de43931dc23157f7d168de50f2843afba06..8411ca984ddf5850abb519cbdcea2113b87a2553 100644 --- a/en/application-dev/reference/arkui-ts/ts-basic-components-scrollbar.md +++ b/en/application-dev/reference/arkui-ts/ts-basic-components-scrollbar.md @@ -26,9 +26,9 @@ ScrollBar(value: { scroller: Scroller, direction?: ScrollBarDirection, state?: B > **NOTE** > -> The **\** component defines the behavior style of the scrollable area, and its subnodes define the behavior style of the scrollbar. -> -> This component is bound to a scrollable component through **scroller**, and can be used to scroll the scrollable component only when their directions are the same. The **\** component can be bound to only one scrollable component, and vice versa. +> The **\** component defines the behavior style of the scrollable area, and its subnodes define the behavior style of the scrollbar. +> +> This component is bound to a scrollable component through **scroller**, and can be used to scroll the scrollable component only when their directions are the same. The **\** component can be bound to only one scrollable component, and vice versa. ## ScrollBarDirection @@ -46,7 +46,7 @@ ScrollBar(value: { scroller: Scroller, direction?: ScrollBarDirection, state?: B @Component struct ScrollBarExample { private scroller: Scroller = new Scroller() - private arr: number[] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] + private arr: number[] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] build() { Column() { @@ -56,8 +56,8 @@ struct ScrollBarExample { ForEach(this.arr, (item) => { Row() { Text(item.toString()) - .width('90%') - .height(100) + .width('80%') + .height(60) .backgroundColor('#3366CC') .borderRadius(15) .fontSize(16) @@ -65,17 +65,18 @@ struct ScrollBarExample { .margin({ top: 5 }) } }, item => item) - }.margin({ right: 52 }) + }.margin({ right: 15 }) } + .width('90%') .scrollBar(BarState.Off) .scrollable(ScrollDirection.Vertical) ScrollBar({ scroller: this.scroller, direction: ScrollBarDirection.Vertical,state: BarState.Auto }) { Text() - .width(30) + .width(20) .height(100) .borderRadius(10) .backgroundColor('#C0C0C0') - }.width(30).backgroundColor('#ededed') + }.width(20).backgroundColor('#ededed') } } } @@ -83,4 +84,4 @@ struct ScrollBarExample { ``` -![en-us_image_0000001256978369](figures/en-us_image_0000001256978369.gif) +![en-us_image_0000001232775585](figures/en-us_image_0000001232775585.gif)