Skip to content

Commit

Permalink
Fix scroll bar will disapplear in scroll container the second time op…
Browse files Browse the repository at this point in the history
…en it
  • Loading branch information
jsjtxietian committed Jun 3, 2024
1 parent 3ac9843 commit 2171167
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scene/gui/scroll_container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ Size2 ScrollContainer::get_minimum_size() const {
largest_child_min_size = Size2();

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;
}
if (c == h_scroll || c == v_scroll) {
Expand Down

0 comments on commit 2171167

Please sign in to comment.