Z F 7 жил өмнө
parent
commit
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
             GridX: 3, GridY: 8, w: 3, h: 3
         }]
         }]
         return (
         return (
-            <DraggerLayout layout={layout} width={800} col={12}>
+            <DraggerLayout layout={layout} width={document.body.clientWidth} col={12}>
                 {layout.map((el, index) => {
                 {layout.map((el, index) => {
                     return (<div key={index}>{index}</div>)
                     return (<div key={index}>{index}</div>)
                 })}
                 })}