Closed ymmuse closed 8 years ago
no anyone know what has happened?
I wrote a testing demo in github. the detail that you could see the README
I can't quite figure out what problem you are reporting exactly. It's also been a while, so I'm going to close this issue. If this is still a problem for you then I suggest opening a new issue and being very clear about what code you are testing, what you see, and what you expect to see.
When i set the lineHeight of Text that is to be nested within Text as child of Text, I get the layout overlap. Here is my code:
Actually, If i remove the child Text that is a parent of View, I can get correct layout, but between the text 'hello' and View lineHeight is incorrect, And the lineHight change to the View Height.
At last, I found the native module code, that's why the lineHeight change to View height: get NSTextAttachment height setting all text lineHeight
I try to fix this problem, i found these code will take out the size of NSTextAttachment and it position. boundingRectForGlyphRange
About the position incorrect I found a interesting thing that the boundingRectForGlyphRange method cannot get correct position when setting ParagraphStyle.maximumLineHeight. So I have made a demo about testing boundingRectForGlyphRange on the situation.
Now, I am stucking...