Skip to content

Commit

Permalink
#0 getComputedStyle is not defined error
Browse files Browse the repository at this point in the history
  • Loading branch information
Ömer Faruk Almali committed Dec 5, 2016
1 parent 1452f7a commit 1950508
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions dist/react-bootstrap-table.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/BootstrapTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ class BootstrapTable extends Component {
const cells = firstRow.childNodes;
for (let i = 0; i < cells.length; i++) {
const cell = cells[i];
const computedStyle = getComputedStyle(cell);
const computedStyle = window.getComputedStyle(cell);
let width = parseFloat(computedStyle.width.replace('px', ''));
if (this.isIE) {
const paddingLeftWidth = parseFloat(computedStyle.paddingLeft.replace('px', ''));
Expand Down

0 comments on commit 1950508

Please sign in to comment.