You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Fix slight visual discrepancy in Search Result dock
This commit is contained in:
@@ -769,7 +769,7 @@ void FindInFilesPanel::draw_result_text(Object *item_obj, Rect2 rect) {
|
|||||||
|
|
||||||
Rect2 match_rect = rect;
|
Rect2 match_rect = rect;
|
||||||
match_rect.position.x += font->get_string_size(item_text.left(r.begin_trimmed), HORIZONTAL_ALIGNMENT_LEFT, -1, font_size).x - 1;
|
match_rect.position.x += font->get_string_size(item_text.left(r.begin_trimmed), HORIZONTAL_ALIGNMENT_LEFT, -1, font_size).x - 1;
|
||||||
match_rect.size.x = font->get_string_size(_search_text_label->get_text(), HORIZONTAL_ALIGNMENT_LEFT, -1, font_size).x + 2;
|
match_rect.size.x = font->get_string_size(_search_text_label->get_text(), HORIZONTAL_ALIGNMENT_LEFT, -1, font_size).x + 1;
|
||||||
match_rect.position.y += 1 * EDSCALE;
|
match_rect.position.y += 1 * EDSCALE;
|
||||||
match_rect.size.y -= 2 * EDSCALE;
|
match_rect.size.y -= 2 * EDSCALE;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user