当 Surface 的 enableCSSLayout 设置为 true 时, Image 的位置不正确

作者: IvyLady创建于 2018年3月20日更新于 2018年3月20日

`

     <Surface top={0} left={0} width={size.width} height={size.height} enableCSSLayout={true}>    

        <Image style={this.getImageStyle()} src={iconUrl}/>  

        <Text style={this.getTextStyle()}>Text</Text>    
     </Surface>

正确的位置是顶部边界,但我画布中有两个边界,而图标位于第二个边界中

内容来源: Flipboard/react-canvas