Skip to content

Commit

Permalink
v0.4.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Tina C Lin (RD-TW) committed May 26, 2017
1 parent a929810 commit 2cd8cdb
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dist/react-table.css

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

2 changes: 1 addition & 1 deletion dist/react-table.min.css

Large diffs are not rendered by default.

15 changes: 12 additions & 3 deletions docs/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -47146,7 +47146,7 @@ var Table = (_temp2 = _class = function (_PureComponent) {
args[_key] = arguments[_key];
}

return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Table.__proto__ || Object.getPrototypeOf(Table)).call.apply(_ref, [this].concat(args))), _this), _this.mainTable = null, _this.state = _this.getInitState(), _this.actions = {
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Table.__proto__ || Object.getPrototypeOf(Table)).call.apply(_ref, [this].concat(args))), _this), _this.customEvent = null, _this.mainTable = null, _this.state = _this.getInitState(), _this.actions = {
detectScrollTarget: function detectScrollTarget(e) {
if (_this.scrollTarget !== e.currentTarget) {
_this.scrollTarget = e.currentTarget;
Expand Down Expand Up @@ -47196,6 +47196,13 @@ var Table = (_temp2 = _class = function (_PureComponent) {
getTableWidth = _actions.getTableWidth;

window.addEventListener('resize', getTableHeight);
if (document.createEvent) {
// IE version
this.customEvent = document.createEvent('Event');
this.customEvent.initEvent('checkWidth', true, true);
} else {
this.customEvent = new Event('checkWidth');
}
window.addEventListener('checkWidth', getTableWidth);
getTableHeight();
}
Expand Down Expand Up @@ -47224,7 +47231,7 @@ var Table = (_temp2 = _class = function (_PureComponent) {
// Issue: Page has no vertical scrollbar at begin, but appears the scrollbar after expanding A table,
// and B table width also displays horizontal scrollbar.
// Solution: Add this action to check other tables size in the same page.
window.dispatchEvent(new Event('checkWidth'));
window.dispatchEvent(this.customEvent);
}
}
}, {
Expand Down Expand Up @@ -47405,6 +47412,8 @@ var Table = (_temp2 = _class = function (_PureComponent) {
delete props.maxHeight;
delete props.rowClassName;
delete props.onRowClick;
delete props.emptyText;
delete props.showHeader;

return _react2.default.createElement(
'div',
Expand Down Expand Up @@ -50129,4 +50138,4 @@ exports.default = _default;
/***/ })

/******/ });
//# sourceMappingURL=bundle.js.map?da5ec3504701a220a456
//# sourceMappingURL=bundle.js.map?d0e012a2c0482f744a5e
2 changes: 1 addition & 1 deletion docs/bundle.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
</head>
<body>
<div id="container"></div>
<script type="text/javascript" src="bundle.js?da5ec3504701a220a456"></script></body>
<script type="text/javascript" src="bundle.js?d0e012a2c0482f744a5e"></script></body>
</html>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@trendmicro/react-table",
"version": "0.4.7",
"version": "0.4.8",
"description": "Trend Micro Components: React Table",
"main": "lib/index.js",
"files": [
Expand Down

0 comments on commit 2cd8cdb

Please sign in to comment.