diff --git a/en/release-notes/changelogs/OpenHarmony_4.0.6.3/changelogs-arkui.md b/en/release-notes/changelogs/OpenHarmony_4.0.6.3/changelogs-arkui.md new file mode 100644 index 0000000000000000000000000000000000000000..344aa3f1f64081b00755ac6b622dee3d0bbc5ad2 --- /dev/null +++ b/en/release-notes/changelogs/OpenHarmony_4.0.6.3/changelogs-arkui.md @@ -0,0 +1,33 @@ +# ArkUI Subsystem Changelog +Fixed the issue where the layout of child components in the [\](../../../application-dev/reference/arkui-ts/ts-container-stack.md) container does not follow the **alignContent** settings when the child components do not fit in the container. + +Example: + +```ts +@Entry +@Component +struct StackExample { + build() { + Stack({alignContent:Alignment.TopEnd}){ + Text('First child, show in bottom') + .width(200).height(200).backgroundColor(0xd2cab3).margin(10) + }.width(150).height(150).backgroundColor(Color.Pink).margin(100) + } +} +``` +Before: Child components are not arranged based on **alignContent:Alignment.TopEnd**. + +![stack](figures/stack_before.jpg) + +After: Child components are arranged based on **alignContent:Alignment.TopEnd**. + +![stack](figures/stack_after.jpg) + + +**Change Impact** + +The previous workaround – setting the **Offset** or **translate** attribute – needs to be removed. + +**Adaptation Guide** + +Remove the **Offset** and **translate** settings for the child components and use **alignContent** for layout. diff --git a/en/release-notes/changelogs/OpenHarmony_4.0.6.3/figures/stack_after.jpg b/en/release-notes/changelogs/OpenHarmony_4.0.6.3/figures/stack_after.jpg new file mode 100644 index 0000000000000000000000000000000000000000..eacfe82a9b1175a8a944be8a793ec940a4a80e0d Binary files /dev/null and b/en/release-notes/changelogs/OpenHarmony_4.0.6.3/figures/stack_after.jpg differ diff --git a/en/release-notes/changelogs/OpenHarmony_4.0.6.3/figures/stack_before.jpg b/en/release-notes/changelogs/OpenHarmony_4.0.6.3/figures/stack_before.jpg new file mode 100644 index 0000000000000000000000000000000000000000..b7b26a73935e28ce34d9895ac3e0cf519bbb41b5 Binary files /dev/null and b/en/release-notes/changelogs/OpenHarmony_4.0.6.3/figures/stack_before.jpg differ