diff options
| author | Juan Linietsky | 2015-02-14 12:09:52 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2015-02-14 12:10:15 -0300 |
| commit | c5f509f238576dba39ffcce74ab2066f24e67b58 (patch) | |
| tree | 888a1bc97d9fdf303a663e626599f74fb268dbff /scene/gui/popup.cpp | |
| parent | d0ea4754057663d2caefbabe32421fd597a8a15d (diff) | |
| download | godot-c5f509f238576dba39ffcce74ab2066f24e67b58.tar.gz godot-c5f509f238576dba39ffcce74ab2066f24e67b58.tar.zst godot-c5f509f238576dba39ffcce74ab2066f24e67b58.zip | |
Diffstat (limited to 'scene/gui/popup.cpp')
| -rw-r--r-- | scene/gui/popup.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/gui/popup.cpp b/scene/gui/popup.cpp index bccd05d4f..d58cb3da7 100644 --- a/scene/gui/popup.cpp +++ b/scene/gui/popup.cpp @@ -94,6 +94,8 @@ void Popup::popup_centered_minsize(const Size2& p_minsize) { Control *c=get_child(i)->cast_to<Control>(); if (!c) continue; + if (c->is_hidden()) + continue; Size2 minsize = c->get_combined_minimum_size(); @@ -114,6 +116,8 @@ void Popup::popup_centered_minsize(const Size2& p_minsize) { } + print_line(String(c->get_type())+": "+minsize); + total_minsize.width = MAX( total_minsize.width, minsize.width ); total_minsize.height = MAX( total_minsize.height, minsize.height ); } |
