mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-27 09:12:41 +00:00
!40446 treeView适老化fontSizeScale可选
Merge pull request !40446 from 唐政辉/master
This commit is contained in:
commit
d610796c64
@ -970,7 +970,7 @@ export class TreeView extends ViewPU {
|
||||
|
||||
decideFontScale() {
|
||||
let i25 = this.getUIContext();
|
||||
let j25 = i25.getHostContext()?.config.fontSizeScale ?? 1;
|
||||
let j25 = i25.getHostContext()?.config?.fontSizeScale ?? 1;
|
||||
if (!this.followingSystemFontScale) {
|
||||
return 1;
|
||||
}
|
||||
@ -3784,7 +3784,7 @@ export class TreeViewInner extends ViewPU {
|
||||
|
||||
decideFontScale() {
|
||||
let g6 = this.getUIContext();
|
||||
let h6 = g6.getHostContext()?.config.fontSizeScale ?? 1;
|
||||
let h6 = g6.getHostContext()?.config?.fontSizeScale ?? 1;
|
||||
if (!this.followingSystemFontScale) {
|
||||
return 1;
|
||||
}
|
||||
|
@ -1005,7 +1005,7 @@ export struct TreeView {
|
||||
|
||||
decideFontScale() {
|
||||
let uiContent: UIContext = this.getUIContext();
|
||||
let systemFontScale = (uiContent.getHostContext() as common.UIAbilityContext)?.config.fontSizeScale ?? 1;
|
||||
let systemFontScale = (uiContent.getHostContext() as common.UIAbilityContext)?.config?.fontSizeScale ?? 1;
|
||||
if (!this.followingSystemFontScale) {
|
||||
return 1;
|
||||
}
|
||||
@ -3839,7 +3839,7 @@ export struct TreeViewInner {
|
||||
|
||||
decideFontScale() {
|
||||
let uiContent: UIContext = this.getUIContext();
|
||||
let systemFontScale = (uiContent.getHostContext() as common.UIAbilityContext)?.config.fontSizeScale ?? 1;
|
||||
let systemFontScale = (uiContent.getHostContext() as common.UIAbilityContext)?.config?.fontSizeScale ?? 1;
|
||||
if (!this.followingSystemFontScale) {
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user