You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-19 14:31:59 +00:00
Merge pull request #102251 from Hilderin/fix-slow-resize-embedded-game
Fix slow resize Embedded Game Window
This commit is contained in:
@@ -979,6 +979,11 @@ GameView::GameView(Ref<GameViewDebugger> p_debugger, WindowWrapper *p_wrapper) {
|
||||
game_size_label = memnew(Label());
|
||||
main_menu_hbox->add_child(game_size_label);
|
||||
game_size_label->hide();
|
||||
// Setting the minimum size prevents the game workspace from resizing indefinitely
|
||||
// due to the label size oscillating by a few pixels when the game is in stretch mode
|
||||
// and the game workspace is at its minimum size.
|
||||
game_size_label->set_custom_minimum_size(Size2(80 * EDSCALE, 0));
|
||||
game_size_label->set_horizontal_alignment(HorizontalAlignment::HORIZONTAL_ALIGNMENT_RIGHT);
|
||||
|
||||
panel = memnew(Panel);
|
||||
add_child(panel);
|
||||
|
||||
Reference in New Issue
Block a user