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

富文本元素内文字换行,导致显示不完整 #699

Closed
hippo2cat opened this issue Jul 4, 2024 · 3 comments
Closed

富文本元素内文字换行,导致显示不完整 #699

hippo2cat opened this issue Jul 4, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@hippo2cat
Copy link

原因:测量元素宽高时使用的是offsetHeight/offsetWidth,会自动转整数,导致元素实际宽度大于容器宽度

@zhensherlock
Copy link
Owner

你好,导致显示不完整的富文本内容,方便提供下吗,我验证下

@hippo2cat
Copy link
Author

@zhensherlock fontSize: 12px时

    <div>
        <div>
             testtesttest
        </div>
        <div>
            testtesttest
        </div>
        <div>
            2024-07-05 12:00:00
        </div>
    </div>

@zhensherlock
Copy link
Owner

感谢你在我们项目中发现并修复了漏洞。你的 PR 已合并,并且最新版本v1.5.2已发布。再次感谢你的支持和帮助!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants