clientHeight is working differently with chrome pdf?
-
Hello @jan_blaha @bjrmatos
I have some requirement where I need to change the font size of content based on the data so that data will not go in next page. and for that I'm counting the div height and the content height using clientHeight. But Not sure why it's taking more height of the content even if content is less than the div height. so basically if data can be fit in given div then it should come with 11pt font otherwise font should be decrease by 0.4pt every time. [Please refer Overview column in below example]
Does it work differently with chrome pdf than normal HTML page? or do I need to use any other approach for this.
https://playground.jsreport.net/w/Heplinesss_17/XC8SuNLv
Thanks!
-
Can we do anything for this?