Explorar o código

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.
Andreas Kling %!s(int64=4) %!d(string=hai) anos
pai
achega
49a5038a1a
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      Libraries/LibGUI/HeaderView.cpp

+ 3 - 0
Libraries/LibGUI/HeaderView.cpp

@@ -104,6 +104,9 @@ Gfx::IntRect HeaderView::section_resize_grabbable_rect(int section) const
 {
 {
     if (!model())
     if (!model())
         return {};
         return {};
+    // FIXME: Support resizable rows.
+    if (m_orientation == Gfx::Orientation::Vertical)
+        return {};
     auto rect = section_rect(section);
     auto rect = section_rect(section);
     return { rect.right() - 1, rect.top(), 4, rect.height() };
     return { rect.right() - 1, rect.top(), 4, rect.height() };
 }
 }