1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 05:54:58 +00: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

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; }