yeslogic / prince-scripts

Useful javascript helper scripts for Prince
MIT License
6 stars 6 forks source link

Add multiline support for offsetWidth #1

Closed petschki closed 2 years ago

petschki commented 5 years ago

I've came accross your script and it pretty much does what it should. My approach for multiline offsetWidth support is not 100% accurate, but better than nothing. Maybe worth a try? At least it does the trick for our project with useHTML enabled labels/titles etc...