diff --git a/en/application-dev/reference/arkui-ts/figures/en-us_image_0000001174264382.PNG b/en/application-dev/reference/arkui-ts/figures/en-us_image_0000001174264382.PNG new file mode 100644 index 0000000000000000000000000000000000000000..686bffd7667c5af3cf95998c8d657c59ed5b2e2c Binary files /dev/null and b/en/application-dev/reference/arkui-ts/figures/en-us_image_0000001174264382.PNG differ diff --git a/en/application-dev/reference/arkui-ts/figures/en-us_image_0000001212218476.gif b/en/application-dev/reference/arkui-ts/figures/en-us_image_0000001212218476.gif deleted file mode 100644 index b4c58da1a241d9d4ea1534b67bb7cd5050e90bf6..0000000000000000000000000000000000000000 Binary files a/en/application-dev/reference/arkui-ts/figures/en-us_image_0000001212218476.gif and /dev/null differ diff --git a/en/application-dev/reference/arkui-ts/figures/en-us_image_0000001219744205.PNG b/en/application-dev/reference/arkui-ts/figures/en-us_image_0000001219744205.PNG new file mode 100644 index 0000000000000000000000000000000000000000..0bf549138d732961621f74b0aca3d7e0f9bb7f16 Binary files /dev/null and b/en/application-dev/reference/arkui-ts/figures/en-us_image_0000001219744205.PNG differ diff --git a/en/application-dev/reference/arkui-ts/figures/en-us_image_0000001256978379.gif b/en/application-dev/reference/arkui-ts/figures/en-us_image_0000001256978379.gif deleted file mode 100644 index 67ccf57fd6c267e8c420b43c309c143a2dd56a45..0000000000000000000000000000000000000000 Binary files a/en/application-dev/reference/arkui-ts/figures/en-us_image_0000001256978379.gif and /dev/null differ diff --git a/en/application-dev/reference/arkui-ts/ts-universal-attributes-layout-constraints.md b/en/application-dev/reference/arkui-ts/ts-universal-attributes-layout-constraints.md index 9be54c63b4619c061174b41c24d6691b49103808..d152645c8505f684c9b7a581ba84c06aef2d3cd0 100644 --- a/en/application-dev/reference/arkui-ts/ts-universal-attributes-layout-constraints.md +++ b/en/application-dev/reference/arkui-ts/ts-universal-attributes-layout-constraints.md @@ -11,7 +11,7 @@ Layout constraints refer to constraints on the aspect ratio and display priority | Name | Type | Description | | --------------- | ------ | ---------------------------------------- | -| aspectRatio | number | Aspect ratio of the component, which can be obtained using the following formula: Width/Height.
Since API version 9, this API is supported in ArkTS widgets.| +| aspectRatio | number | Aspect ratio of the component, which can be obtained using the following formula: Width/Height.
Since API version 9, this API is supported in ArkTS widgets.
The default value varies by API version.
API version 9 and earlier: **1.0**
API version 10: none
**NOTE**
This attribute does not take effect when it is not set or is set to an invalid value.
For example, if a **\** component has only its width set and does not have any child component, then when **aspectRatio** is not set or is set to a negative value, the height of the **\** component is 0. | | displayPriority | number | Display priority for the component in the layout container. When the space of the parent container is insufficient, the component with a lower priority is hidden.
The digits after the decimal point are not counted in determining the display priority. That is, numbers in the [x, x + 1) range are considered to represent the same priority. For example, **1.0** and **1.9** represent the same priority.
Since API version 9, this API is supported in ArkTS widgets.
**NOTE**
This attribute is valid only for the **\**, **\**, and **\** (single-row) container components.| ## Example @@ -73,11 +73,11 @@ struct AspectRatioExample { **Figure 1** Portrait display -![en-us_image_0000001256978379](figures/en-us_image_0000001256978379.gif) +![en-us_image_0000001219744205](figures/en-us_image_0000001219744205.PNG) **Figure 2** Landscape display -![en-us_image_0000001212218476](figures/en-us_image_0000001212218476.gif) +![en-us_image_0000001174264382](figures/en-us_image_0000001174264382.PNG) ### Example 2