You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
Set an appropriate minimum size for labels in windows that display incorrectly
When the label's `autowrap_mode` is `AUTOWRAP_WORD_SMART` and the initial `text`
is set at the same time, it may have a higher height.
Set an appropriate minimum size for labels in windows that display incorrectly
so that these controls display properly.
(cherry picked from commit f932c6548e)
This commit is contained in:
@@ -1274,6 +1274,7 @@ ProjectExportDialog::ProjectExportDialog() {
|
||||
server_strip_message = memnew(Label);
|
||||
server_strip_message->set_visible(false);
|
||||
server_strip_message->set_autowrap_mode(TextServer::AUTOWRAP_WORD_SMART);
|
||||
server_strip_message->set_custom_minimum_size(Size2(300 * EDSCALE, 1));
|
||||
resources_vb->add_child(server_strip_message);
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user