Skip to content

Commit

Permalink
fix issue #132
Browse files Browse the repository at this point in the history
  • Loading branch information
光弘 committed Sep 18, 2016
1 parent e391970 commit 4a34afd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions demo/GridDemo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ class Demo extends React.Component {
console.log(current, pageSize);
},
showSearch: true,
// fetchUrl,
jsxdata: mockData,
fetchUrl,
// jsxdata: mockData,
rowSelector: 'checkboxSelector',
jsxcolumns: columns,
rowSelection,
Expand Down
6 changes: 3 additions & 3 deletions src/Table.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ class Table extends React.Component {
height: props.height,
};
const actionBarHeight = props.actionBar ? props.actionBarHeight : 0;
const pagerHeight = (props.showPager && this.state.data && this.state.data.totalCount) ? 50 : 0;
const pagerHeight = (props.showPager && this.state.data && this.state.data.totalCount) ? 42 : 0;

// decide whether the table has column groups
let hasGroup = false;
Expand All @@ -777,7 +777,7 @@ class Table extends React.Component {
} else {
bodyHeight = props.height === '100%'
? props.height
: (props.height - (headerHeight || (hasGroup ? 80 : 40)) - actionBarHeight - pagerHeight);
: (props.height - (headerHeight || (hasGroup ? 100 : 50)) - actionBarHeight - pagerHeight);
}
const renderBodyProps = {
columns: state.columns,
Expand Down Expand Up @@ -1144,7 +1144,7 @@ Table.defaultProps = {
mode: Const.MODE.EDIT,
renderModel: '',
levels: 1,
actionBarHeight: 40,
actionBarHeight: 54,
fetchDataOnMount: true,
doubleClickToEdit: true,
rowSelector: 'checkboxSelector',
Expand Down

0 comments on commit 4a34afd

Please sign in to comment.