Detect end of the html content offset #1172
Replies: 5 comments
-
As far as I'm aware, there isn't a simple way to get that offset without writing some sort of layout algorithm from scratch. You could possibly do some sort of hack with Some more info about what you are trying to achieve could help us provide some better workarounds! |
Beta Was this translation helpful? Give feedback.
-
Here's my original question in StackOverflow: (the image in the first post describes the situation) The answers on that question are suggestions using a Knowing the remaining space on the last line of if (space is enough) |
Beta Was this translation helpful? Give feedback.
-
Ah, thank you for the StackOverflow link. I wasn't super familiar with |
Beta Was this translation helpful? Give feedback.
-
I wasn't home. Sorry for the late reply. This is great news. Can't wait to see some sort of solution. Thanks for the effort, :) |
Beta Was this translation helpful? Give feedback.
-
Just wanted to follow up. Did you manage to play around with RichText? Any progress? |
Beta Was this translation helpful? Give feedback.
-
Is it possible to get the end offset of the content as shown below?
I'd like to be able to insert a widget at the red/yellow dot. That's a thing CSS float can do easily but since float is not supported, I'd like to know if there's a way we could detect that offset to calculate the remaining space to the end of the line.
Beta Was this translation helpful? Give feedback.
All reactions