Tags: pablolmiranda/react-virtualized
Tags
Added optional `id` prop to `Collection`, `Grid`, `List`, and `Table`. Thanks to @mnquintana for the contribution!
Added `containerStyle` property to `Grid`. This property allows custom styling to be applied to the inner cell-containing div. This can be used to enable padding within the grid. For more context see: github.com/metabase/metabase/pull/3547 Refactored the `detect-element-resize` util to export a factory function. This allows `AutoSizer` to import it initially but defer execution until mounted. (Executing immediately causes problems for server-side rendering context. Using a deferred `require` causes problems for es6 bundlers, eg Rollup.) Fixed an edge-case that occurred for slower browsers when mounting and then quickly unmounting an `AutoSizer`. In some cases, an animation event was left attached. This event is now specifically checked for and removed. Special thanks to @yb (PR bvaughn#436) for this bugfix contribution.
Replaces references to `getComputedStyle` with `window.getComputedSty… …le` to better support Enzyme. Thanks to @DevinClark for the contribution!
Added "module" entry to `package.json` in order to support ES modules… … with the latest Webpack. This should enable tree-shaking support ouf of the box for Webpack. Rollup will continue to use the "jsnext:main" entry to my knowledge. For more info see https://github.com/dherman/defense-of-dot-js/blob/master/proposal.md Related issues: webpack/webpack#1979, bvaughn/issues/427
`scrollToColumn` and `scrollToRow` offsets will always be 0 when `Gri… …d` size is <= 0. Technically this is an invalid size but a 0 offset is a more meaningful return value. Previously the min/max offset check could result in a positive offset in this case (which is invalid).
PreviousNext