incubator-weex icon indicating copy to clipboard operation
incubator-weex copied to clipboard

[ios] fix text height problem in ios14

Open Txink opened this issue 4 years ago • 1 comments

Brief Description of the PR

在ios14之后版本,当text组件设置lines时,计算的组件高度要小于实际高度,导致底部内容被截断

  • Demo: http://dotwe.org/vue/af51c5dcc72ea2363b548cb3079c8927

  • Documentation: CTLineGetTypographicBounds() 函数存在问题,通过CTFrameGetLineOrigins()计算位置差来估算高度

Txink avatar Nov 20 '20 07:11 Txink

Warnings
:warning: No Changelog changes! - Can you add a Changelog? To do so,append your changes to the changelog.md
:warning: Current pr not bind the milestone
:warning: If your PR is about fixing a bug excluding crash the code,you should add the demo link in the PR description. Demo link: http://dotwe.org/vue

Generated by :no_entry_sign: dangerJS against 2578163b2eafacc67f9fd7073ff55d57c103efd9

weex-bot avatar Nov 20 '20 07:11 weex-bot