mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
Revert "make Label consider spaces for visible_characters"
This reverts commit 695980a0f2
.
Fixes #35668.
This commit is contained in:
parent
1c3aff42de
commit
11d28b2d10
@ -449,7 +449,6 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
|
|||||||
- Decreased the `rotation_degrees` range in various nodes to -360..360 to be easier to adjust using the slider.
|
- Decreased the `rotation_degrees` range in various nodes to -360..360 to be easier to adjust using the slider.
|
||||||
- Lower and higher values can still be entered manually, which is useful for animation purposes.
|
- Lower and higher values can still be entered manually, which is useful for animation purposes.
|
||||||
- The default RichTextLabel color is now `#ffffff`, matching the default Label color for better consistency.
|
- The default RichTextLabel color is now `#ffffff`, matching the default Label color for better consistency.
|
||||||
- Label's `visible_characters` property now takes spaces into account to be consistent with RichTextLabel.
|
|
||||||
- SpinBoxes now calculate the entered value using the Expression class.
|
- SpinBoxes now calculate the entered value using the Expression class.
|
||||||
- For example, writing `2 + 2` in a SpinBox then pressing Enter will result in `4`.
|
- For example, writing `2 + 2` in a SpinBox then pressing Enter will result in `4`.
|
||||||
- Saved resources no longer contain dependency indices and metadata such as node folding, resulting in more VCS-friendly files.
|
- Saved resources no longer contain dependency indices and metadata such as node folding, resulting in more VCS-friendly files.
|
||||||
|
@ -232,7 +232,6 @@ void Label::_notification(int p_what) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (from->space_count) {
|
if (from->space_count) {
|
||||||
chars_total += from->space_count;
|
|
||||||
/* spacing */
|
/* spacing */
|
||||||
x_ofs += space_w * from->space_count;
|
x_ofs += space_w * from->space_count;
|
||||||
if (can_fill && align == ALIGN_FILL && spaces) {
|
if (can_fill && align == ALIGN_FILL && spaces) {
|
||||||
|
Loading…
Reference in New Issue
Block a user