Skip to content

Commit

Permalink
bugfix: table width was not correctly read from container width
Browse files Browse the repository at this point in the history
  • Loading branch information
warpech committed Apr 12, 2013
1 parent 0da8c2a commit 70e2812
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## HEAD

Bugfix:
- table width was not correctly read from container width

## [0.8.18](https://github.com/warpech/jquery-handsontable/tree/v0.8.18) (Apr 12, 2013)

Features:
Expand Down
2 changes: 1 addition & 1 deletion src/tableView.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ Handsontable.TableView.prototype.isCellEdited = function () {
};

Handsontable.TableView.prototype.getWidth = function () {
var val = typeof this.settings.width !== void 0 ? this.settings.width : this.settingsFromDOM.width;
var val = this.settings.width !== void 0 ? this.settings.width : this.settingsFromDOM.width;
return typeof val === 'function' ? val() : val;
};

Expand Down

0 comments on commit 70e2812

Please sign in to comment.