Skip to content

Commit feba305

Browse files
committed
Fix flexbox bug with headers and footers in fixed height tables
1 parent 0a04cba commit feba305

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

NEWS.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# reactable 0.2.1.9000
2+
3+
### Bug fixes
4+
5+
* Headers in fixed height tables now display properly in Safari, Chrome, and
6+
the RStudio Viewer ([#76](https://github.com/glin/reactable/issues/76)).
7+
18
# reactable 0.2.1
29

310
### New features

srcjs/reactable.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,13 @@ input[type='radio'].rt-select-input {
162162
}
163163

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

0 commit comments

Comments
 (0)