mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:27:35 +00:00
LibGUI: Calculate row position for scroll into view
When a user is navigating a table view with arrow keys and a row is outside of the current view, then scroll_into_view is called, and the position of the rectangle passed to this should take into account the column headers. This can be seen making more pleasant the navigation in the System Monitor in the Processes view, for example.
This commit is contained in:
parent
938380e88b
commit
8eb8949d9c
2 changed files with 5 additions and 13 deletions
|
@ -51,7 +51,6 @@ public:
|
|||
|
||||
virtual Gfx::IntRect content_rect(const ModelIndex&) const override;
|
||||
Gfx::IntRect content_rect(int row, int column) const;
|
||||
Gfx::IntRect cell_rect(int row, int column) const;
|
||||
Gfx::IntRect row_rect(int item_index) const;
|
||||
|
||||
virtual Gfx::IntRect paint_invalidation_rect(ModelIndex const& index) const override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue