Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3aee8e1ae028269aaaa383a796e19b20fe356b92
      
https://github.com/WebKit/WebKit/commit/3aee8e1ae028269aaaa383a796e19b20fe356b92
  Author: Vitaly Dyachkov <[email protected]>
  Date:   2026-09-21 (Mon, 21 Sep 2026)

  Changed paths:
    M Source/WebInspectorUI/UserInterface/Views/DataGrid.js
    M Source/WebInspectorUI/UserInterface/Views/Table.js

  Log Message:
  -----------
  Web Inspector: Blank gap in tables after resizing
https://bugs.webkit.org/show_bug.cgi?id=324565

Reviewed by Devin Rousso.

Resizing the Web Inspector window while a table has more rows than
currently fit can leave a blank gap at the bottom of the table.

Both `WI.Table` and `WI.DataGrid` only render the rows currently on
screen, and skip recomputing them unless something relevant changed.
The early return condition never checks if the container height has
changed since the last computation, so a resize could leave old rows
and spacer heights behind.

Force a recompute of the visible row window when the container height
changes.

* Source/WebInspectorUI/UserInterface/Views/DataGrid.js:
(WI.DataGrid.prototype.updateVisibleRows):
(WI.DataGrid.prototype._calculateOffsetHeight):
(WI.DataGrid.prototype._calculateScrollTop):
* Source/WebInspectorUI/UserInterface/Views/Table.js:
(WI.Table.prototype._updateVisibleRows):

Canonical link: https://commits.webkit.org/321529@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to