diff options
| author | toger5 | 2017-09-29 16:59:38 +0200 |
|---|---|---|
| committer | toger5 | 2017-09-29 17:00:17 +0200 |
| commit | 8c087e046d393a2fb5dd1d458139acc78431807d (patch) | |
| tree | a185e606276ffe9b15e8278eb80d39380f92991a | |
| parent | dee100139008bd4dd8c270da6a7f5aa326a32c25 (diff) | |
| download | godot-8c087e046d393a2fb5dd1d458139acc78431807d.tar.gz godot-8c087e046d393a2fb5dd1d458139acc78431807d.tar.zst godot-8c087e046d393a2fb5dd1d458139acc78431807d.zip | |
| -rw-r--r-- | scene/gui/text_edit.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index d79ce2534..11bdbfc3e 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -501,8 +501,7 @@ void TextEdit::_notification(int p_what) { if (cache.background_color.a > 0.01) { - Point2i ofs = Point2i(cache.style_normal->get_offset()) / 2.0; - VisualServer::get_singleton()->canvas_item_add_rect(ci, Rect2(ofs, get_size() - cache.style_normal->get_minimum_size() + ofs), cache.background_color); + VisualServer::get_singleton()->canvas_item_add_rect(ci, Rect2(Point2i(), get_size()), cache.background_color); } //compute actual region to start (may be inside say, a comment). //slow in very large documments :( but ok for source! |
