Skip to content

Commit ebb7f58

Browse files
author
Brian Vaughn
committed
Added MultiGrid method measureAllCells; deprecated misnamed measureAllRows method.
1 parent a3b9a53 commit ebb7f58

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
Changelog
22
------------
33

4+
##### 8.11.2
5+
* 🐛 Added `MultiGrid` method `measureAllCells`; deprecated misnamed `measureAllRows` method.
6+
47
##### 8.11.1
58
* 🐛 Fixed regression in `WindowScroller` when browser is resized. ([@andrewbranch](https://github.com/andrewbranch) - [#548](https://github.com/bvaughn/react-virtualized/pull/548))
69

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "React components for efficiently rendering large, scrollable lists and tabular data",
44
"author": "Brian Vaughn <[email protected]>",
55
"user": "bvaughn",
6-
"version": "8.11.1",
6+
"version": "8.11.2",
77
"next": "8.9.0",
88
"homepage": "https://github.com/bvaughn/react-virtualized",
99
"main": "dist/commonjs/index.js",

source/MultiGrid/MultiGrid.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,20 @@ export default class MultiGrid extends Component {
5252
}
5353

5454
/** See Grid#measureAllCells */
55-
measureAllRows () {
55+
measureAllCells () {
5656
this._bottomLeftGrid && this._bottomLeftGrid.measureAllCells()
5757
this._bottomRightGrid && this._bottomRightGrid.measureAllCells()
5858
this._topLeftGrid && this._topLeftGrid.measureAllCells()
5959
this._topRightGrid && this._topRightGrid.measureAllCells()
6060
}
6161

62+
/** See issue #546 */
63+
measureAllRows () {
64+
console.warn('MultiGrid measureAllRows() is deprecated; use measureAllCells() instead.')
65+
66+
this.measureAllCells()
67+
}
68+
6269
/** See Grid#recomputeGridSize */
6370
recomputeGridSize ({
6471
columnIndex = 0,

0 commit comments

Comments
 (0)