diff options
author | Andreas Kling <kling@serenityos.org> | 2020-08-26 14:20:43 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-26 17:00:40 +0200 |
commit | 49a5038a1aca68b766805788f8e28e22372d91fb (patch) | |
tree | 4b7dcf29c682b07d9742410be10f4379b761a564 | |
parent | e418bdf95b04b8c9e7528dd5c554e91c4245d092 (diff) | |
download | serenity-49a5038a1aca68b766805788f8e28e22372d91fb.zip |
LibGUI: Avoid implementing vertical HeaderView section resize for now
Resizable rows will require a bunch of changes in the table view layout
code, so let's not make the normal resizing areas grabbable for now.
-rw-r--r-- | Libraries/LibGUI/HeaderView.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Libraries/LibGUI/HeaderView.cpp b/Libraries/LibGUI/HeaderView.cpp index c264b0661b..8ffb74fb84 100644 --- a/Libraries/LibGUI/HeaderView.cpp +++ b/Libraries/LibGUI/HeaderView.cpp @@ -104,6 +104,9 @@ Gfx::IntRect HeaderView::section_resize_grabbable_rect(int section) const { if (!model()) return {}; + // FIXME: Support resizable rows. + if (m_orientation == Gfx::Orientation::Vertical) + return {}; auto rect = section_rect(section); return { rect.right() - 1, rect.top(), 4, rect.height() }; } |