|
@@ -72,7 +72,7 @@ class OperateScreen extends React.Component {
|
|
|
initScroll = () => {
|
|
|
const parentDom = document.getElementById('patWrap');
|
|
|
const style = window.getComputedStyle(parentDom);
|
|
|
- const parentH = parentDom.offsetHeight - parseInt(style.paddingTop) - parseInt(style.paddingBottom);
|
|
|
+ const parentH = parentDom.offsetHeight - parseInt(style.paddingTop) - parseInt(style.paddingBottom) - 50;
|
|
|
const childH = parentDom.children[0].offsetHeight;
|
|
|
const pageSize = Math.floor(parentH / childH) - 1;
|
|
|
this.setState({
|