summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2020-01-26 10:24:56 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2020-01-26 10:24:56 +0800
commit71b1a1c7d9885b417a19bcb9b8c43e47fdcf13d5 (patch)
tree51bbb9adc971383376a0481a203baf401991824a
parentbe1bc53d42577c02cbdf32fff5e2a60234e6270a (diff)
Updates minimum size on VideoPlayer::set_stream
-rw-r--r--scene/gui/video_player.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/gui/video_player.cpp b/scene/gui/video_player.cpp
index 071e8a8ac6..0a693d4023 100644
--- a/scene/gui/video_player.cpp
+++ b/scene/gui/video_player.cpp
@@ -249,6 +249,10 @@ void VideoPlayer::set_stream(const Ref<VideoStream> &p_stream) {
}
update();
+
+ if (!expand) {
+ minimum_size_changed();
+ }
};
Ref<VideoStream> VideoPlayer::get_stream() const {