Skip to content

Commit

Permalink
fixing code formatting for lint
Browse files Browse the repository at this point in the history
  • Loading branch information
RaviDasari committed May 7, 2017
1 parent 2ff2e6e commit a031f98
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions source/CellMeasurer/CellMeasurerCache.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,21 +230,19 @@ export default class CellMeasurerCache {
let columnWidth = 0
if (this._hasFixedWidth) {
// if has fixed width columns, no need to calculate width for each row
columnWidth = this._columnWidthCache[columnKey] || columnWidth;
columnWidth = this._columnWidthCache[columnKey] || columnWidth
columnWidth = Math.max(columnWidth, this.getWidth(rowIndex, columnIndex))
}
else {
} else {
for (let i = 0; i < this._rowCount; i++) {
columnWidth = Math.max(columnWidth, this.getWidth(i, columnIndex))
}
}
let rowHeight = 0
if (this._hasFixedHeight) {
// if has fixed height rows, no need to calculate height for each column
rowHeight = this._rowHeightCache[rowKey] || rowHeight;
rowHeight = this._rowHeightCache[rowKey] || rowHeight
rowHeight = Math.max(rowHeight, this.getHeight(rowIndex, columnIndex))
}
else {
} else {
for (let i = 0; i < this._columnCount; i++) {
rowHeight = Math.max(rowHeight, this.getHeight(rowIndex, i))
}
Expand Down

0 comments on commit a031f98

Please sign in to comment.