js:adjust hook timing for nested situation

This commit is contained in:
pengfei.zhou
2019-12-26 11:23:56 +08:00
committed by osborn
parent 48e6066e75
commit 7c88eebeb8
5 changed files with 81 additions and 19 deletions

View File

@@ -77,7 +77,7 @@ class StickDemo extends Panel {
return new FlowLayoutItem().apply({
backgroundColor: colors[itemIdx % colors.length],
height: 50,
layoutConfig: layoutConfig().configWidth(LayoutSpec.JUST),
layoutConfig: layoutConfig().configWidth(LayoutSpec.MOST),
}).also(it => {
it.addChild(text({
text: `In Page ${idx},${itemIdx}`,