1e41f4b71Sopenharmony_ci# ArkUI Subsystem Changelog 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ci## cl.arkui.1 Optimization of Coordinates in Gesture Event Return Value 4e41f4b71Sopenharmony_ci 5e41f4b71Sopenharmony_ci**Access Level** 6e41f4b71Sopenharmony_ci 7e41f4b71Sopenharmony_ciPublic 8e41f4b71Sopenharmony_ci 9e41f4b71Sopenharmony_ci**Reason for Change** 10e41f4b71Sopenharmony_ci 11e41f4b71Sopenharmony_ciIn earlier versions, after a component is translated, rotated, or scaled, the coordinates returned from the event are incorrect and cannot be mapped to the coordinate system. 12e41f4b71Sopenharmony_ci 13e41f4b71Sopenharmony_ci**Change Impact** 14e41f4b71Sopenharmony_ci 15e41f4b71Sopenharmony_ciThe returned coordinates can be mapped to the coordinate system. 16e41f4b71Sopenharmony_ci 17e41f4b71Sopenharmony_ci**Change Since** 18e41f4b71Sopenharmony_ci 19e41f4b71Sopenharmony_ciOpenHarmony SDK 4.1.3.3 20e41f4b71Sopenharmony_ci 21e41f4b71Sopenharmony_ci**Key API/Component Changes** 22e41f4b71Sopenharmony_ci 23e41f4b71Sopenharmony_ci* **offsetX**, **offsetY**, **pinchCenterX**, **pinchCenterY**, and **speed** in **GestureEvent** 24e41f4b71Sopenharmony_ci 25e41f4b71Sopenharmony_ci* **localX** and **localY** in **FingerInfo** 26e41f4b71Sopenharmony_ci 27e41f4b71Sopenharmony_ci* **x** and **y** in **ClickEvent** 28e41f4b71Sopenharmony_ci 29e41f4b71Sopenharmony_ci* **x** and **y** in **TouchObject** 30e41f4b71Sopenharmony_ci 31e41f4b71Sopenharmony_ci**Adaptation Guide** 32e41f4b71Sopenharmony_ci 33e41f4b71Sopenharmony_ciN/A 34e41f4b71Sopenharmony_ci 35e41f4b71Sopenharmony_ci## cl.ArkUI.2 Change to the selectBackgroundColor Attribute of the \<TextInput> Component 36e41f4b71Sopenharmony_ci 37e41f4b71Sopenharmony_ci**Access Level** 38e41f4b71Sopenharmony_ciPublic 39e41f4b71Sopenharmony_ci 40e41f4b71Sopenharmony_ci**Reason for Change** 41e41f4b71Sopenharmony_ciIf the **ResourceColor** value of **selectedBackgroundColor** does not have the opacity specified, text will be masked when selected. 42e41f4b71Sopenharmony_ci 43e41f4b71Sopenharmony_ci**Change Impact** 44e41f4b71Sopenharmony_ciThis change is a compatible change. If the **ResourceColor** value of **selectedBackgroundColor** does not have the opacity specified, a 20% opacity will be used. 45e41f4b71Sopenharmony_ci 46e41f4b71Sopenharmony_ci**Change Since** 47e41f4b71Sopenharmony_ciOpenHarmony SDK 4.1.3.3 48e41f4b71Sopenharmony_ci 49e41f4b71Sopenharmony_ci**Key API/Component Changes** 50e41f4b71Sopenharmony_ci**selectedBackgroundColor** attribute of the **\<TextInput>** component 51e41f4b71Sopenharmony_ci 52e41f4b71Sopenharmony_ci**Adaptation Guide** 53e41f4b71Sopenharmony_ciN/A 54e41f4b71Sopenharmony_ci 55e41f4b71Sopenharmony_ci## cl.ArkUI.3 Change to the Default Behavior for the animationDuration Attribute of the \<Tabs> Component 56e41f4b71Sopenharmony_ci 57e41f4b71Sopenharmony_ci**Access Level** 58e41f4b71Sopenharmony_ci 59e41f4b71Sopenharmony_ciPublic 60e41f4b71Sopenharmony_ci 61e41f4b71Sopenharmony_ci**Reason for Change** 62e41f4b71Sopenharmony_ci 63e41f4b71Sopenharmony_ciThe **\<Tabs>** component's **animationDuration** attribute did not exhibit consistent default behaviors: 64e41f4b71Sopenharmony_ciIf **animationDuration** is not set, no tab switching animation is displayed when a specific tab is clicked; if it is set to a value less than 0, a tab switching animation is displayed when a specific tab is clicked, and the default value 300 ms is used. 65e41f4b71Sopenharmony_ci 66e41f4b71Sopenharmony_ci**Change Impact** 67e41f4b71Sopenharmony_ci 68e41f4b71Sopenharmony_ciThis change is a non-compatible change. 69e41f4b71Sopenharmony_ciIn API version 10 and earlier versions, if **animationDuration** is not set, no tab switching animation is displayed when a specific tab is clicked. 70e41f4b71Sopenharmony_ciSince API version 11, if **animationDuration** is not set, a tab switching animation is displayed when a specific tab is clicked, and the default value 300 ms is used. 71e41f4b71Sopenharmony_ci 72e41f4b71Sopenharmony_ci**Change Since** 73e41f4b71Sopenharmony_ci 74e41f4b71Sopenharmony_ciOpenHarmony SDK 4.1.3.3 75e41f4b71Sopenharmony_ci 76e41f4b71Sopenharmony_ci**Key API/Component Changes** 77e41f4b71Sopenharmony_ci 78e41f4b71Sopenharmony_ci**animationDuration** attribute of the **\<Tabs>** component 79e41f4b71Sopenharmony_ci 80e41f4b71Sopenharmony_ci**Adaptation Guide** 81e41f4b71Sopenharmony_ci 82e41f4b71Sopenharmony_ciBefore the change, if you do not want to display a tab switching animation when a specific tab is clicked, set **animationDuration** to **0** or do not set it at all. 83e41f4b71Sopenharmony_ciAfter the change, if you do not want to display a tab switching animation when a specific tab is clicked:<br>API version 11 or later: Set **animationDuration** to **0**.<br>API version 10 or earlier: Set **animationDuration** to **0** or do not set it at all. 84e41f4b71Sopenharmony_ci 85e41f4b71Sopenharmony_ci## cl.ArkUI.4 Change to the padding Attribute of the \<TextInput> Component 86e41f4b71Sopenharmony_ci 87e41f4b71Sopenharmony_ci**Access Level** 88e41f4b71Sopenharmony_ci 89e41f4b71Sopenharmony_ciPublic 90e41f4b71Sopenharmony_ci 91e41f4b71Sopenharmony_ci**Reason for Change** 92e41f4b71Sopenharmony_ci 93e41f4b71Sopenharmony_ciWhen **padding** is set to **{left:10vp}**, the top, bottom, and right paddings are at 0, instead of at their default values. 94e41f4b71Sopenharmony_ci 95e41f4b71Sopenharmony_ci**Change Impact** 96e41f4b71Sopenharmony_ci 97e41f4b71Sopenharmony_ciThis change is a non-compatible change. When **padding** is set to **{left:10vp}**, the top, bottom, and right paddings are at their default values, which are 16 vp, 16 vp, and 8 vp, respectively. 98e41f4b71Sopenharmony_ci 99e41f4b71Sopenharmony_ci**Change Since** 100e41f4b71Sopenharmony_ci 101e41f4b71Sopenharmony_ciAll versions 102e41f4b71Sopenharmony_ci 103e41f4b71Sopenharmony_ci**Key API/Component Changes** 104e41f4b71Sopenharmony_ci 105e41f4b71Sopenharmony_ci**padding** attribute of the **\<TextInput>** component 106e41f4b71Sopenharmony_ci 107e41f4b71Sopenharmony_ci**Adaptation Guide** 108e41f4b71Sopenharmony_ci 109e41f4b71Sopenharmony_ciIf you want to set the left padding of the **\<TextInput>** component to 10 vp and other paddings to 0, set **padding** to **{left:10vp, right:0vp, top:0vp, bottom:0vp}**. If the padding for a specific direction is not specified, the default value is used. 110e41f4b71Sopenharmony_ci 111e41f4b71Sopenharmony_ci## cl.ArkUI.5 Change to the Line Height of the \<Text> component 112e41f4b71Sopenharmony_ci 113e41f4b71Sopenharmony_ci**Access Level** 114e41f4b71Sopenharmony_ci 115e41f4b71Sopenharmony_ciOther 116e41f4b71Sopenharmony_ci 117e41f4b71Sopenharmony_ci**Reason for Change** 118e41f4b71Sopenharmony_ci 119e41f4b71Sopenharmony_ciThe line height of the **\<Text>** component must be the same as the font size, instead of being fixed at 14 px. 120e41f4b71Sopenharmony_ci 121e41f4b71Sopenharmony_ci**Change Impact** 122e41f4b71Sopenharmony_ci 123e41f4b71Sopenharmony_ciThis change is a non-compatible change. 124e41f4b71Sopenharmony_ci 125e41f4b71Sopenharmony_ciIn API version 10 and earlier versions, when **fontSize('20px')** is set, the line height of the **\<Text>** component is 14 px, and the line height of its child component **\<Span>** is also fixed at 14 px. 126e41f4b71Sopenharmony_ci 127e41f4b71Sopenharmony_ciSince API version 11, when **fontSize('20px')** is set, the line height of the **\<Text>** component is 20 px, and the line height of its child component **\<Span>** is fixed at 14 px. 128e41f4b71Sopenharmony_ci 129e41f4b71Sopenharmony_ci**Change Since** 130e41f4b71Sopenharmony_ci 131e41f4b71Sopenharmony_ciOpenHarmony SDK 4.1.3.3 132e41f4b71Sopenharmony_ci 133e41f4b71Sopenharmony_ci**Key API/Component Changes** 134e41f4b71Sopenharmony_ci 135e41f4b71Sopenharmony_ci**\<Text>** component 136e41f4b71Sopenharmony_ci 137e41f4b71Sopenharmony_ci**Adaptation Guide** 138e41f4b71Sopenharmony_ci 139e41f4b71Sopenharmony_ciN/A 140e41f4b71Sopenharmony_ci 141e41f4b71Sopenharmony_ci## cl.ArkUI.6 Bug Fix for scrollTo Calls in the Scroller 142e41f4b71Sopenharmony_ci 143e41f4b71Sopenharmony_ci**Access Level** 144e41f4b71Sopenharmony_ci 145e41f4b71Sopenharmony_ciPublic 146e41f4b71Sopenharmony_ci 147e41f4b71Sopenharmony_ci**Reason for Change** 148e41f4b71Sopenharmony_ci 149e41f4b71Sopenharmony_ci This change is made to fix the following bug: When the scroller calls the **scrollTo** method, if the scrolling distance of the **\<Grid>** component is beyond the current page height along the main axis, the target position has an error of **rowsGap** multiplied by number of rows. 150e41f4b71Sopenharmony_ci 151e41f4b71Sopenharmony_ci**Change Impact** 152e41f4b71Sopenharmony_ci 153e41f4b71Sopenharmony_ciThis change is a compatible change. After change, a **scrollTo** method call will scroll the **\<Grid>** component to a more precise position. 154e41f4b71Sopenharmony_ci 155e41f4b71Sopenharmony_ci**API Level** 156e41f4b71Sopenharmony_ci 157e41f4b71Sopenharmony_ci7 158e41f4b71Sopenharmony_ci 159e41f4b71Sopenharmony_ci**Change Since** 160e41f4b71Sopenharmony_ci 161e41f4b71Sopenharmony_ciOpenHarmony 4.1.3.3 162e41f4b71Sopenharmony_ci 163e41f4b71Sopenharmony_ci**Key API/Component Changes** 164e41f4b71Sopenharmony_ci 165e41f4b71Sopenharmony_ci**\<Grid>** component 166e41f4b71Sopenharmony_ci 167e41f4b71Sopenharmony_ci**Adaptation Guide** 168e41f4b71Sopenharmony_ci 169e41f4b71Sopenharmony_ciN/A 170