mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-02-22 13:33:13 +00:00
Set dynamics dialog to correct size after something is made visible or hidden
This commit is contained in:
parent
a0c7dd4527
commit
625fe4cdd1
1 changed files with 7 additions and 0 deletions
|
@ -29,6 +29,13 @@ func _ready() -> void:
|
||||||
size_velocity_button.toggled.connect(
|
size_velocity_button.toggled.connect(
|
||||||
_on_dynamics_toggled.bind(size_velocity_button, SIZE, Tools.Dynamics.VELOCITY)
|
_on_dynamics_toggled.bind(size_velocity_button, SIZE, Tools.Dynamics.VELOCITY)
|
||||||
)
|
)
|
||||||
|
for child: Control in $VBoxContainer.get_children():
|
||||||
|
## Resets the y-size to an appropriate value
|
||||||
|
child.visibility_changed.connect(func ():
|
||||||
|
await get_tree().process_frame
|
||||||
|
size.y = 0
|
||||||
|
size.y += 10
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
func _input(event: InputEvent) -> void:
|
func _input(event: InputEvent) -> void:
|
||||||
|
|
Loading…
Add table
Reference in a new issue