Browse Source

Updates minimum size on VideoPlayer::set_stream

Haoyu Qiu 5 years ago
parent
commit
71b1a1c7d9
1 changed files with 4 additions and 0 deletions
  1. 4 0
      scene/gui/video_player.cpp

+ 4 - 0
scene/gui/video_player.cpp

@@ -249,6 +249,10 @@ void VideoPlayer::set_stream(const Ref<VideoStream> &p_stream) {
 	}
 	}
 
 
 	update();
 	update();
+
+	if (!expand) {
+		minimum_size_changed();
+	}
 };
 };
 
 
 Ref<VideoStream> VideoPlayer::get_stream() const {
 Ref<VideoStream> VideoPlayer::get_stream() const {