Skip to content

Commit

Permalink
Fix flexbox bug with headers and footers in fixed height tables
Browse files Browse the repository at this point in the history
  • Loading branch information
glin committed Sep 12, 2020
1 parent 0a04cba commit feba305
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 7 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# reactable 0.2.1.9000

### Bug fixes

* Headers in fixed height tables now display properly in Safari, Chrome, and
the RStudio Viewer ([#76](https://github.com/glin/reactable/issues/76)).

# reactable 0.2.1

### New features
Expand Down
7 changes: 5 additions & 2 deletions srcjs/reactable.css
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,13 @@ input[type='radio'].rt-select-input {
}

/**
* Fix flexbox bug in Safari and Chrome where table body can shrink below its
* min height when overflowed, causing footers to show up in table body.
* Work around flexbox bug in Safari, Chrome, and the RStudio Viewer where
* table elements can shrink below their min height when overflowed, causing
* elements to overlap.
* Fixed in Chrome 72+: https://github.com/philipwalton/flexbugs#flexbug-1
*/
.ReactTable .rt-thead.-header,
.ReactTable .rt-tfoot,
.ReactTable .rt-tbody {
flex-shrink: 0;
}
Expand Down

0 comments on commit feba305

Please sign in to comment.