소스 검색

client width

Z F 7 년 전
부모
커밋
b7ac5072f0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/src/App.js

+ 1 - 1
app/src/App.js

@@ -397,7 +397,7 @@ export default class LayoutDemo extends React.Component {
             GridX: 3, GridY: 8, w: 3, h: 3
         }]
         return (
-            <DraggerLayout layout={layout} width={800} col={12}>
+            <DraggerLayout layout={layout} width={document.body.clientWidth} col={12}>
                 {layout.map((el, index) => {
                     return (<div key={index}>{index}</div>)
                 })}