Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

echarts 渲染图片位置不对 #304

Open
fj-auto opened this issue Nov 29, 2024 · 3 comments
Open

echarts 渲染图片位置不对 #304

fj-auto opened this issue Nov 29, 2024 · 3 comments

Comments

@fj-auto
Copy link

fj-auto commented Nov 29, 2024

image

尝试过给position,在开发者工具上面是可以的。但是在微信IOS里面 15 16 都发生了移位
.message {
width: 100%;
border-radius: 24rpx;
word-break: break-word;
margin: 20rpx 0;
box-sizing: border-box;
position: relative;
}

.assistant-message {
background: #f5f4ef;
margin-right: auto;
padding: 12rpx;
}

.ec-canvas {
position: relative !important;
}

.towxml-container {
position: relative;
width: 100%;
}

@sbfkcel
Copy link
Owner

sbfkcel commented Nov 29, 2024

跑一下DEMO,剔除你应用本身的样式看看。

@fj-auto
Copy link
Author

fj-auto commented Dec 2, 2024

跑一下DEMO,剔除你应用本身的样式看看。

因为滚动使用了 scroll-view 同时设置了以下样式~出现了issue的中的问题

image .scroll-view { position: fixed; top: 0; left: 0; right: 0; bottom: 0; padding: 16px; box-sizing: border-box; overflow-y: scroll; }

但是,如果不使用scroll view ,使用 view 就会出现下面的情况。滚动的时候,echart 不随着页面滚动。固定在了一个地方

image

@sbfkcel
Copy link
Owner

sbfkcel commented Dec 4, 2024

这是你的业务问题,看DEMO中的示例应该不会存在这个问题呢。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants