mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
LibGUI: Let the table view tell HeaderView about the min. section size
Previously HeaderView would just assume that each column or row could have a minimum size of 2. This makes it so that AbstractTableView subclasses can provide a new minimum value for a specific column.
This commit is contained in:
parent
854e16797e
commit
ab2719fd53
Notes:
sideshowbarker
2024-07-18 07:14:51 +09:00
Author: https://github.com/sin-ack
Commit: ab2719fd53
Pull-request: https://github.com/SerenityOS/serenity/pull/9282
3 changed files with 23 additions and 6 deletions
|
@ -39,6 +39,8 @@ public:
|
|||
int column_width(int column) const;
|
||||
void set_column_width(int column, int width);
|
||||
void set_default_column_width(int column, int width);
|
||||
virtual int minimum_column_width(int column);
|
||||
virtual int minimum_row_height(int row);
|
||||
|
||||
Gfx::TextAlignment column_header_alignment(int column) const;
|
||||
void set_column_header_alignment(int column, Gfx::TextAlignment);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue