You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Ignore empty Font resources as theme override.
Add range hint to font_size properties. Remove excessive `base_size` Font property.
This commit is contained in:
@@ -129,7 +129,7 @@ void CodeEdit::_notification(int p_what) {
|
||||
}
|
||||
|
||||
const int scroll_width = code_completion_options_count > code_completion_max_lines ? code_completion_scroll_width : 0;
|
||||
const int code_completion_base_width = font->get_string_size(code_completion_base).width;
|
||||
const int code_completion_base_width = font->get_string_size(code_completion_base, font_size).width;
|
||||
if (caret_pos.x - code_completion_base_width + code_completion_rect.size.width + scroll_width > get_size().width) {
|
||||
code_completion_rect.position.x = get_size().width - code_completion_rect.size.width - scroll_width;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user