1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-02-14 17:53:09 +00:00

Fix a dockable container bug where the minimum size of the panels was not calculated correctly

Not too happy about this fix, it doesn't feel proper, but it works for now.
This commit is contained in:
Emmanouil Papadeas 2025-02-10 03:05:31 +02:00
parent 1b71dd565a
commit a28b526645
2 changed files with 3 additions and 1 deletions

View file

@ -24,7 +24,7 @@ Files extracted from source:
## godot-dockable-container
- Upstream: https://github.com/gilzoide/godot-dockable-container
- Version: Based on [e852cbeeb3f06f62c559898b4cf5756858367766](https://github.com/OverloadedOrama/godot-dockable-container/commit/e852cbeeb3f06f62c559898b4cf5756858367766), but with changes in layout.gd that add a `save_on_change` and `layout_reset_path` variables, and a `save()`, `copy_from()` and `reset()` methods.
- Version: Based on [e852cbeeb3f06f62c559898b4cf5756858367766](https://github.com/OverloadedOrama/godot-dockable-container/commit/e852cbeeb3f06f62c559898b4cf5756858367766), but with changes in layout.gd that add a `save_on_change` and `layout_reset_path` variables, and a `save()`, `copy_from()` and `reset()` methods, a fix in dockable_container.gd's line 44, and another on dockable_panel.gd's lines 86 and 87.
- License: [CC0-1.0](https://github.com/gilzoide/godot-dockable-container/blob/main/LICENSE)
## SmartSlicer

View file

@ -83,6 +83,8 @@ func get_leaf() -> DockableLayoutPanel:
func get_layout_minimum_size() -> Vector2:
hide()
show()
return get_combined_minimum_size()