1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-12 13:20:55 +00:00

Make TextEdit.clip_contents more transparent to users

Instead of ignoring `TextEdit.clip_contents`, use it with a default
value `true`. in the same way as `RichTextLabel`.
This commit is contained in:
Markus Sauermann
2024-03-28 21:07:27 +01:00
parent 29b3d9e9e5
commit 94e1943f02
2 changed files with 2 additions and 1 deletions

View File

@@ -539,7 +539,6 @@ void TextEdit::_notification(int p_what) {
_update_scrollbars();
RID ci = get_canvas_item();
RenderingServer::get_singleton()->canvas_item_set_clip(get_canvas_item(), true);
int xmargin_beg = theme_cache.style_normal->get_margin(SIDE_LEFT) + gutters_width + gutter_padding;
int xmargin_end = size.width - theme_cache.style_normal->get_margin(SIDE_RIGHT);
@@ -8022,5 +8021,6 @@ TextEdit::TextEdit(const String &p_placeholder) {
set_placeholder(p_placeholder);
set_clip_contents(true);
set_editable(true);
}