merge: 营地内滚提前断流修(ScrollContainer 固定高→EXPAND_FILL 撑满面板余高)
This commit is contained in:
commit
7d3e88fc90
3 files changed
+2
No files matched your search
Binary file not shown.
|
Before Width: | Height: | Size: 847 KiB After Width: | Height: | Size: 876 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 313 KiB After Width: | Height: | Size: 337 KiB |
@@ -109,6 +109,7 @@ func _init() -> void:
|
||||
# 柜台内滚承载,冻结三柜台版式与另两柜台零触碰,视觉终稿归营地批)
|
||||
var ws_scroll := ScrollContainer.new()
|
||||
ws_scroll.custom_minimum_size = Vector2(340, 336)
|
||||
ws_scroll.size_flags_vertical = Control.SIZE_EXPAND_FILL # 2026-10-06 用户实测修——纵向撑满面板余高(固定 336=行断流但面板下半空着,滚动条提前出现)
|
||||
ws_scroll.horizontal_scroll_mode = ScrollContainer.SCROLL_MODE_DISABLED
|
||||
_workshop_holder = VBoxContainer.new()
|
||||
_workshop_holder.add_theme_constant_override("separation", 6)
|
||||
@@ -130,6 +131,7 @@ func _init() -> void:
|
||||
_tree_holder.add_theme_constant_override("separation", 6)
|
||||
var tree_scroll := ScrollContainer.new()
|
||||
tree_scroll.custom_minimum_size = Vector2(300, 200)
|
||||
tree_scroll.size_flags_vertical = Control.SIZE_EXPAND_FILL # 2026-10-06 同修——树段内滚撑满图鉴柜余高
|
||||
tree_scroll.horizontal_scroll_mode = ScrollContainer.SCROLL_MODE_DISABLED
|
||||
tree_scroll.add_child(_tree_holder)
|
||||
atlas_holder.add_child(tree_scroll)
|
||||
|
||||
Reference in new issue
Block a user