From 71b1a1c7d9885b417a19bcb9b8c43e47fdcf13d5 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Sun, 26 Jan 2020 10:24:56 +0800 Subject: [PATCH] Updates minimum size on VideoPlayer::set_stream --- scene/gui/video_player.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scene/gui/video_player.cpp b/scene/gui/video_player.cpp index 071e8a8ac64..0a693d40236 100644 --- a/scene/gui/video_player.cpp +++ b/scene/gui/video_player.cpp @@ -249,6 +249,10 @@ void VideoPlayer::set_stream(const Ref &p_stream) { } update(); + + if (!expand) { + minimum_size_changed(); + } }; Ref VideoPlayer::get_stream() const {