Skip to content

Commit 5a7830f

Browse files
committed
fix layout creation
1 parent 2fca272 commit 5a7830f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

examples/change-size/src/index.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@ class Delegate {
2020
}
2121

2222
function newLayout(large) {
23-
const layout = new GridLayout()
24-
layout.itemSize = large ? [260, 260] : [180, 180]
25-
return layout
23+
const itemSize = large ? [260, 260] : [180, 180]
24+
return new GridLayout({itemSize})
2625
}
2726

2827
window.onload = function () {

0 commit comments

Comments
 (0)