1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-05 19:31:35 +00:00

Fix blank non-autowrapping labels

This commit is contained in:
Pedro J. Estébanez
2023-02-13 18:46:56 +01:00
parent 4a2c2170b4
commit 3ccabee9ae

View File

@@ -177,6 +177,10 @@ void Label::_shape() {
minsize.width = TS->shaped_text_get_size(lines_rid[i]).x;
}
}
// With autowrap off, by now we already know the width the label will take.
width = (minsize.width - style->get_minimum_size().width);
width_stabilized = true;
}
if (lines_dirty && width_stabilized) {