You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 19:11:41 +00:00
Merge pull request #73736 from helviett/fix_visible_lines_calculation
Fix visible_lines calculation
This commit is contained in:
@@ -209,10 +209,7 @@ bool Label::_shape() {
|
||||
|
||||
// Fill after min_size calculation.
|
||||
|
||||
int visible_lines = lines_rid.size();
|
||||
if (max_lines_visible >= 0 && visible_lines > max_lines_visible) {
|
||||
visible_lines = max_lines_visible;
|
||||
}
|
||||
int visible_lines = get_visible_line_count();
|
||||
if (autowrap_mode != TextServer::AUTOWRAP_OFF) {
|
||||
bool lines_hidden = visible_lines > 0 && visible_lines < lines_rid.size();
|
||||
if (lines_hidden) {
|
||||
|
||||
Reference in New Issue
Block a user