PSHTMLView icon indicating copy to clipboard operation
PSHTMLView copied to clipboard

different height

Open yunchiri opened this issue 7 years ago • 4 comments

simulator screen shot - iphone 8 plus - 2018-03-17 at 01 29 24

html String "

<meta name="viewport" content="initial-scale=1.0 "width=device-width user-scalable=no "/><style type="text/css"> * {max-width: 100%; !important;"}
\n <a href="https://youtu.be/x3k9FJoUfy8"><img src="https://i.ytimg.com/vi/x3k9FJoUfy8/maxresdefault.jpg" >

첨밀밀OST - 월량대표아적심 (등려군)

\n

\n\n호나우도 바티스투다"

2018-03-17 2 35 28


web view frame = (0 0; 375 312);

PSHTMLView frame = (0 0; 375 296)

receive height = 296

is there are anything for fix

yunchiri avatar Mar 16 '18 16:03 yunchiri

호나우도 바티스투다 <-- doesn't show full text

yunchiri avatar Mar 16 '18 16:03 yunchiri

Solve

document.body.offsetHeight
to document.body.scrollHeight

yunchiri avatar Mar 16 '18 17:03 yunchiri

Solve

document.body.offsetHeight to document.body.scrollHeight

it dosen't work well, on bad networking and it's not good solution anyone can solve this problem i've got this problem too

rezamagnet avatar Oct 23 '18 08:10 rezamagnet

@rezamagnet are you solved?

yunchiri avatar Nov 29 '18 10:11 yunchiri