Open MartB opened 6 years ago
I don't see anything obviously wrong. HtmlView needs to be provided with a maximum width to work properly, but I don't think that explain this problem. Could it be some strange issue with space reserved for the scroll bar?
That sounds super possible now that you mention it. Will try to play with scrollbar sizes and see if it affects it.
Reporting back i tried changing the size of the scrollbar and it was not affecting the cut text at all. Also played around with more options and noticed no change.
Edit: If i change the constraints it just changes the position of where the text is cut so it seems to be an width calculation issue from within the library.
Can you try to cut this example down to a case that is straightforward to reproduce for me?
One option to debug this might be to print the element name, width, widthMode and borderBoxWidth in AndroidContainerElment.onMeasure, indented by the nesting level
will provide an example app on github in the next few days. Thanks for checking
p.s. Does the problem persist with less content? If it's related to the content, I could add the content to a test case...
Had not time to continue developing this app, will update you if i ever continue working on this.
Using nativehtml in a Framelayout inside a NestedScrollView does seem to have invalid width. Am i doing something obvious wrong or do i need to go bughunting within the library to fix the width calculation ?
Symptoms
Used Layout
Used code
I can fix this behaviour with adding a "padding-right: 7px" to my html on the entire container. This is an ugly workaround tho as im not sure what underlying issue is causing it at the moment.