Skip to content

Commit

Permalink
CodeEdit: Fix line number margin
Browse files Browse the repository at this point in the history
  • Loading branch information
rune-scape committed Oct 26, 2024
1 parent 2a8869e commit 5d168a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scene/gui/code_edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5d168a3

Please sign in to comment.