1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 02:13:56 +09:00

LibGUI: Don't hard-code TreeView row height

Instead of overriding AbstractTableView::row_height() and returning a
hard-coded height for some reason, just remove the override.

This makes tree view row heights honor the current font size.
This commit is contained in:
Andreas Kling 2023-02-01 19:24:18 +01:00
parent bb4fda3b97
commit ff0766056b
Notes: sideshowbarker 2024-07-17 00:55:07 +09:00

View file

@ -55,7 +55,6 @@ protected:
private:
virtual ModelIndex index_at_event_position(Gfx::IntPoint, bool& is_toggle) const override;
int row_height() const { return 16; }
int max_item_width() const { return frame_inner_rect().width(); }
int indent_width_in_pixels() const { return 16; }
int icon_size() const { return 16; }