• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Access Token Changelog
2
3## cl.access_token.1 Change in the Security Component Behaviors for the offset Attribute
4
5**Access Level**
6
7Public API
8
9**Reason for the Change**
10
11When a security component cannot be completely displayed in its parent component due to the setting of **offset**, it can still be tapped, which poses security risks and may be exploited by malicious applications.
12
13**Change Impact**
14
15This change is a non-compatible change.
16
17Before the change:
18
19When a security component is clipped and cannot be completely displayed in its parent component due to the setting of **offset**, it still responds to user taps.
20
21Example:
22
23When **LocationButton** is clipped and cannot be completely displayed in its parent component due to the setting of **offset**, it still responds to user taps, allowing access to the location information.
24
25![be_clipped](figures/security_component_be_clipped.png)
26
27After the change:
28
29When a security component is clipped and cannot be completely displayed in its parent component due to the setting of **offset**, it does not respond to user taps.
30
31Example:
32
33When **LocationButton** is clipped and cannot be completely displayed in its parent component due to the setting of **offset**, it does not respond to user taps.
34
35![be_clipped](figures/security_component_be_clipped.png)
36
37**Start API Level**
38
3910
40
41**Change Since**
42
43OpenHarmony SDK 5.0.0.46
44
45**Key API/Component Changes**
46
47**LocationButton** in @internal/component/ets/location_button.d.ts.
48
49**SaveButton** in @internal/component/ets/save_button.d.ts.
50
51**PasteButton** in @internal/component/ets/paste_button.d.ts.
52
53**Adaptation Guide**
54
55If a security component is clipped by its parent component and cannot be completely displayed, adjust the value of **x** or **y** in **offset({x: value, y: value})** to bring it into full view.
56
57![not_be_clipped](figures/security_component_not_be_clipped.png)
58