Skip to content

Commit

Permalink
Merge pull request #91757 from Chaosus/fix_color_picker_placement
Browse files Browse the repository at this point in the history
Fix placement of ColorPicker in the editor
  • Loading branch information
akien-mga committed May 10, 2024
2 parents 6766404 + 1fd1adc commit a294825
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scene/gui/box_container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,8 @@ Size2 BoxContainer::get_minimum_size() const {
bool first = true;

for (int i = 0; i < get_child_count(); i++) {
Control *c = as_sortable_control(get_child(i));
if (!c) {
Control *c = Object::cast_to<Control>(get_child(i));
if (!c || !c->is_visible() || c->is_set_as_top_level()) {
continue;
}

Expand Down
4 changes: 2 additions & 2 deletions scene/gui/margin_container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ Size2 MarginContainer::get_minimum_size() const {
Size2 max;

for (int i = 0; i < get_child_count(); i++) {
Control *c = as_sortable_control(get_child(i));
if (!c) {
Control *c = Object::cast_to<Control>(get_child(i));
if (!c || !c->is_visible() || c->is_set_as_top_level()) {
continue;
}

Expand Down

0 comments on commit a294825

Please sign in to comment.