mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Fix: typo in TextParagraph class and docs
This commit is contained in:
@@ -84,7 +84,7 @@ void TextParagraph::_bind_methods() {
|
||||
|
||||
ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "width"), "set_width", "get_width");
|
||||
|
||||
ClassDB::bind_method(D_METHOD("get_non_wraped_size"), &TextParagraph::get_non_wraped_size);
|
||||
ClassDB::bind_method(D_METHOD("get_non_wrapped_size"), &TextParagraph::get_non_wrapped_size);
|
||||
ClassDB::bind_method(D_METHOD("get_size"), &TextParagraph::get_size);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("get_rid"), &TextParagraph::get_rid);
|
||||
@@ -417,7 +417,7 @@ float TextParagraph::get_width() const {
|
||||
return width;
|
||||
}
|
||||
|
||||
Size2 TextParagraph::get_non_wraped_size() const {
|
||||
Size2 TextParagraph::get_non_wrapped_size() const {
|
||||
const_cast<TextParagraph *>(this)->_shape_lines();
|
||||
if (TS->shaped_text_get_orientation(rid) == TextServer::ORIENTATION_HORIZONTAL) {
|
||||
return Size2(TS->shaped_text_get_size(rid).x, TS->shaped_text_get_size(rid).y + spacing_top + spacing_bottom);
|
||||
|
||||
Reference in New Issue
Block a user