mirror of
https://github.com/godotengine/godot.git
synced 2024-11-24 13:12:42 +00:00
Merge pull request #98543 from rune-scape/code-edit-margin
CodeEdit: Fix line number margin
This commit is contained in:
commit
cd66343c70
@ -1498,9 +1498,9 @@ void CodeEdit::_line_number_draw_callback(int p_line, int p_gutter, const Rect2
|
||||
ofs.y += TS->shaped_text_get_ascent(text_rid);
|
||||
|
||||
if (rtl) {
|
||||
ofs.x = p_region.position.x;
|
||||
} else {
|
||||
ofs.x = p_region.get_end().x - text_size.width;
|
||||
} else {
|
||||
ofs.x = p_region.position.x;
|
||||
}
|
||||
|
||||
Color number_color = get_line_gutter_item_color(p_line, line_number_gutter);
|
||||
|
Loading…
Reference in New Issue
Block a user