From bc6c0e31bd943ebe00812e76aac0478ef3835d89 Mon Sep 17 00:00:00 2001 From: TJH Date: Wed, 1 Jul 2026 15:40:31 +0800 Subject: [PATCH] =?UTF-8?q?UI=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/Game/history/scripts/Paytable.ts | 3 ++- assets/Game/history/scripts/Rules.ts | 3 ++- assets/Main/main.scene | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/assets/Game/history/scripts/Paytable.ts b/assets/Game/history/scripts/Paytable.ts index 9a726c1..a28e057 100644 --- a/assets/Game/history/scripts/Paytable.ts +++ b/assets/Game/history/scripts/Paytable.ts @@ -1,4 +1,4 @@ -import { _decorator, Component, EventMouse, JsonAsset, Layout, math, Node, ScrollView, UITransform } from 'cc'; +import { _decorator, Component, EventMouse, JsonAsset, Layout, math, Node, ScrollView, UITransform, Widget } from 'cc'; import { hideToBottom, isBrahmic, updateLang, wrapTextBySpace } from './Tools'; import { getLanguage } from 'db://assets/Main/Scripts/main/comm'; @@ -19,6 +19,7 @@ export class Paytable extends Component { this.dict = this.langJson.json[getLanguage()] ?? this.langJson.json["en"]; this.scrollView = this.node.getChildByName("ScrollView").getComponent(ScrollView) + this.scrollView.node.getChildByName('view').getComponent(Widget).updateAlignment() this.scrollView.node.on('scrolling', this.onScrolling, this); this.node.on(Node.EventType.MOUSE_WHEEL, this.onMouseWheel, this); diff --git a/assets/Game/history/scripts/Rules.ts b/assets/Game/history/scripts/Rules.ts index 62e9dd7..6588378 100644 --- a/assets/Game/history/scripts/Rules.ts +++ b/assets/Game/history/scripts/Rules.ts @@ -1,4 +1,4 @@ -import { _decorator, Component, EventMouse, JsonAsset, Label, Layout, math, Node, ScrollView, UITransform } from 'cc'; +import { _decorator, Component, EventMouse, JsonAsset, Label, Layout, math, Node, ScrollView, UITransform, Widget } from 'cc'; import { getAllRichTexts, hideToBottom, isBrahmic, updateLang, wrapTextBySpace } from './Tools'; import { getCsymbol, getLanguage } from 'db://assets/Main/Scripts/main/comm'; const { ccclass, property } = _decorator; @@ -16,6 +16,7 @@ export class Rules extends Component { protected onLoad(): void { this.dict = this.langJson.json[getLanguage()] ?? this.langJson.json["en"]; this.scrollView = this.node.getChildByName("ScrollView").getComponent(ScrollView) + this.scrollView.node.getChildByName('view').getComponent(Widget).updateAlignment() this.scrollView.node.on('scrolling', this.onScrolling, this); this.node.on(Node.EventType.MOUSE_WHEEL, this.onMouseWheel, this); diff --git a/assets/Main/main.scene b/assets/Main/main.scene index 679eb00..b1131f0 100644 --- a/assets/Main/main.scene +++ b/assets/Main/main.scene @@ -2568,7 +2568,7 @@ "_contentSize": { "__type__": "cc.Size", "width": 1080, - "height": 2400 + "height": 2360 }, "_anchorPoint": { "__type__": "cc.Vec2",