百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
返回工具页/返回 Issues 列表
#171·react-canvas

当 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

查看 GitHub 原文在 GitHub 查看讨论