Explorar o código

修正resize bug

方正 %!s(int64=7) %!d(string=hai) anos
pai
achega
f09f920808
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)
     }