diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_4.0.8.5/changelogs-arkui.md b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.8.5/changelogs-arkui.md new file mode 100644 index 0000000000000000000000000000000000000000..3ddbf18f726d4d494e9aae786f0ec36fe6cd5fb4 --- /dev/null +++ b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.8.5/changelogs-arkui.md @@ -0,0 +1,37 @@ +# arkui子系统ChangeLog + +## cl.arkui.1 stack组件alignContent属性和通用属性align生效顺序。 + +**说明** +属性之间的处理原则:如果功能相同,属性按覆盖处理即后设置的生效。alignContent和align功能相同,都是子组件在stack容器组件的对齐方式。 + +**示例:** +```ts +// xxx.ets +@Entry +@Component +struct StackExample { + build() { + Stack({alignContent:Alignment.Start}){ + Text("Stack's child").backgroundColor(Color.Brown).height("100").width(100) + } + .width(300).height(300) + .backgroundColor(Color.Pink) + .align(Alignment.Center) + .alignContent(Alignment.TopEnd) + } +} +``` + +api9:子组件按照通用属性align布局 + +![stack](figures/api9.png) + + +api10及以后:子组件按照后设置的alignContent布局 + +![stack](figures/api10_and_later.png) + +**变更影响** + +alignContent和align都设置时,api9版本及以前是align生效,api10及以后是后设置的生效。 diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_4.0.8.5/figures/api10_and_later.png b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.8.5/figures/api10_and_later.png new file mode 100644 index 0000000000000000000000000000000000000000..a5c7e90386f90da43daebe82165ef728dbf0d1d0 Binary files /dev/null and b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.8.5/figures/api10_and_later.png differ diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_4.0.8.5/figures/api9.png b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.8.5/figures/api9.png new file mode 100644 index 0000000000000000000000000000000000000000..ab945f0162be71defb1d3f6de5ae59fcb15a846e Binary files /dev/null and b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.8.5/figures/api9.png differ