feat:fix click subview of ListItem or PageItem

This commit is contained in:
pengfei.zhou
2019-11-19 15:31:23 +08:00
parent 353ff356a5
commit 1dba8d7b10
5 changed files with 25 additions and 9 deletions

View File

@@ -4,7 +4,7 @@ import { Stack } from "./layout";
export function slideItem(item: View) {
return (new SlideItem).also((it) => {
it.layoutConfig = {
widthSpec: LayoutSpec.WRAP_CONTENT,
widthSpec: LayoutSpec.AT_MOST,
heightSpec: LayoutSpec.WRAP_CONTENT,
}
it.addChild(item)