summaryrefslogtreecommitdiff
path: root/scene/gui/split_container.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-02-15 20:48:18 +0100
committerGitHub <noreply@github.com>2022-02-15 20:48:18 +0100
commit98b97d34df7f3ab2cafc3847358c231c3d357b40 (patch)
tree431aa6f107e860aa1e1f4ae8864f9b06e8ace169 /scene/gui/split_container.cpp
parent6d575873969609e6ed58dee5052d23512b104498 (diff)
parent0f5455230c8955be0c6533574bd3d5b6f50792b6 (diff)
Merge pull request #58151 from akien-mga/notification-switch-scene
Diffstat (limited to 'scene/gui/split_container.cpp')
-rw-r--r--scene/gui/split_container.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/gui/split_container.cpp b/scene/gui/split_container.cpp
index b56326088d..6845d46721 100644
--- a/scene/gui/split_container.cpp
+++ b/scene/gui/split_container.cpp
@@ -168,15 +168,18 @@ void SplitContainer::_notification(int p_what) {
case NOTIFICATION_LAYOUT_DIRECTION_CHANGED: {
queue_sort();
} break;
+
case NOTIFICATION_SORT_CHILDREN: {
_resort();
} break;
+
case NOTIFICATION_MOUSE_EXIT: {
mouse_inside = false;
if (get_theme_constant(SNAME("autohide"))) {
update();
}
} break;
+
case NOTIFICATION_DRAW: {
if (!_getch(0) || !_getch(1)) {
return;
@@ -200,6 +203,7 @@ void SplitContainer::_notification(int p_what) {
draw_texture(tex, Point2i(middle_sep + (sep - tex->get_width()) / 2, (size.y - tex->get_height()) / 2));
}
} break;
+
case NOTIFICATION_THEME_CHANGED: {
update_minimum_size();
} break;