diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-06-23 06:45:23 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-06-23 06:45:23 +0200 |
commit | 3e7f33e4eb153108e4c2e8801d7c01083b18a64b (patch) | |
tree | 136cce3c58964207f8c9c6a6e2ce6b72f5456a89 | |
parent | dc8333067f060692a8dedad43c45d7c6b171a9f8 (diff) | |
download | serenity-3e7f33e4eb153108e4c2e8801d7c01083b18a64b.zip |
GAbstractView: Correct placement of editor widgets.
-rw-r--r-- | LibGUI/GAbstractView.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/LibGUI/GAbstractView.cpp b/LibGUI/GAbstractView.cpp index 300ede4a6e..c0f72ceccc 100644 --- a/LibGUI/GAbstractView.cpp +++ b/LibGUI/GAbstractView.cpp @@ -74,7 +74,7 @@ void GAbstractView::begin_editing(const GModelIndex& index) m_edit_widget = new GTextBox(this); m_edit_widget->move_to_back(); m_edit_widget->set_text(model()->data(index, GModel::Role::Display).to_string()); - m_edit_widget_content_rect = content_rect(index); + m_edit_widget_content_rect = content_rect(index).translated(frame_thickness(), frame_thickness()); update_edit_widget_position(); m_edit_widget->set_focus(true); m_edit_widget->on_return_pressed = [this] { |