Browse Source

Merge pull request #35569 from timothyqiu/video-player-min-size

Updates minimum size on VideoPlayer::set_stream
Rémi Verschelde 5 years ago
parent
commit
55cc46a052
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();
+
+	if (!expand) {
+		minimum_size_changed();
+	}
 };
 
 Ref<VideoStream> VideoPlayer::get_stream() const {