mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:17:36 +00:00
LibGUI: Bring entire cell into view after auto scroll into view
On account of row and column headers, when a user navigates to a cell (for example in the spreadsheet application) that is outside of the view, the cell is not properly aligned and so is partially cut-off. This fix takes into account the row and column headers when calculating the Rect to pass to the scroll_into_view function.
This commit is contained in:
parent
e824a2da90
commit
452150c632
2 changed files with 13 additions and 1 deletions
|
@ -51,6 +51,7 @@ 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