소스 검색

修正resize bug

方正 7 년 전
부모
커밋
f09f920808
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/lib/gridItem.tsx

+ 1 - 1
src/lib/gridItem.tsx

@@ -155,7 +155,7 @@ export default class GridItem extends React.Component<GridItemProps, {}> {
         const calWidth = this.calColWidth();
 
         const w = Math.round((wPx - calWidth * 0.5) / calWidth)
-        const h = Math.round((hPx - this.props.rowHeight * 0.8) / this.props.rowHeight)
+        const h = Math.round((hPx - this.props.rowHeight * 0.5) / this.props.rowHeight)
         return checkWidthHeight(this.props.GridX, w, h, this.props.col)
     }