diff options
author | Yuri Sizov <yuris@humnom.net> | 2021-11-08 23:53:41 +0300 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2022-02-10 20:29:34 +0300 |
commit | 107b6f299cda3f8b63432930f19cdd9bc24fb6dc (patch) | |
tree | 24026b11ed93dea43d86c16544e2ac40ec030517 /scene/gui/panel_container.cpp | |
parent | 242c636a63ac2d8b002ace37388dce9273a9048a (diff) |
Reorganize inspector layout workflow for Control nodes
Diffstat (limited to 'scene/gui/panel_container.cpp')
-rw-r--r-- | scene/gui/panel_container.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/scene/gui/panel_container.cpp b/scene/gui/panel_container.cpp index 463ad3c513..91a343084b 100644 --- a/scene/gui/panel_container.cpp +++ b/scene/gui/panel_container.cpp @@ -60,6 +60,24 @@ Size2 PanelContainer::get_minimum_size() const { return ms; } +Vector<int> PanelContainer::get_allowed_size_flags_horizontal() const { + Vector<int> flags; + flags.append(SIZE_FILL); + flags.append(SIZE_SHRINK_BEGIN); + flags.append(SIZE_SHRINK_CENTER); + flags.append(SIZE_SHRINK_END); + return flags; +} + +Vector<int> PanelContainer::get_allowed_size_flags_vertical() const { + Vector<int> flags; + flags.append(SIZE_FILL); + flags.append(SIZE_SHRINK_BEGIN); + flags.append(SIZE_SHRINK_CENTER); + flags.append(SIZE_SHRINK_END); + return flags; +} + void PanelContainer::_notification(int p_what) { if (p_what == NOTIFICATION_DRAW) { RID ci = get_canvas_item(); |