Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork924
Detect end of the html content offset#1172
-
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. |
BetaWas this translation helpful?Give feedback.
All reactions
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! |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
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) |
BetaWas this translation helpful?Give feedback.
All reactions
-
Ah, thank you for the StackOverflow link. I wasn't super familiar with |
BetaWas this translation helpful?Give feedback.
All reactions
-
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, :) |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
-
Just wanted to follow up. Did you manage to play around with RichText? Any progress? |
BetaWas this translation helpful?Give feedback.
