diff --git a/src/components/floor-plan/modal/object/SizeSetting.jsx b/src/components/floor-plan/modal/object/SizeSetting.jsx index 39f6897c..cfb24c57 100644 --- a/src/components/floor-plan/modal/object/SizeSetting.jsx +++ b/src/components/floor-plan/modal/object/SizeSetting.jsx @@ -21,8 +21,8 @@ export default function SizeSetting(props) { const { resizeSurfaceShapeBatch } = useSurfaceShapeBatch({}) const widthRef = useRef(null) const heightRef = useRef(null) - const [width, setWidth] = useState(target?.originWidth ? (target.originWidth * 10) : 0) - const [height, setHeight] = useState(target?.originHeight ? (target.originHeight * 10) : 0) + const [width, setWidth] = useState(target?.originWidth ? target.originWidth * 10 : (target.width * 10).toFixed(0)) + const [height, setHeight] = useState(target?.originHeight ? target.originHeight * 10 : (target.height * 10).toFixed(0)) // const { initEvent } = useEvent() // const { initEvent } = useContext(EventContext)