Skip to content

Commit

Permalink
fix: scope Firefox workaround to versions before 99 (#3808) (#3809)
Browse files Browse the repository at this point in the history
Co-authored-by: Serhii Kulykov <iamkulykov@gmail.com>
  • Loading branch information
vaadin-bot and web-padawan committed May 9, 2022
1 parent 2d6e42b commit 46607a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/grid/src/vaadin-grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,8 @@ class Grid extends ElementMixin(
}

__updateFooterPositioning() {
if (this._firefox) {
// TODO: fixed in Firefox 99, remove when we can drop Firefox ESR 91 support
if (this._firefox && parseFloat(navigator.userAgent.match(/Firefox\/(\d{2,3}.\d)/)[1]) < 99) {
// Sticky (or translated) footer in a flexbox host doesn't get included in
// the scroll height calculation on FF. This is a workaround for the issue.
this.$.items.style.paddingBottom = 0;
Expand Down

0 comments on commit 46607a1

Please sign in to comment.