You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to generate a perfect snapshot of the content of a WebView. The content is bigger than the screen and I get the size of the content handover by JS into the iOS app.
The following image shows a blue UIImageView with the snapshot. The green part is the body of HTML, fixed by setting width and height in JS the same width and height is handover into the app to set the WebView to the same size.
The challenge is that I get a whitespace on the right and the bottom inside the snapshot. The whitespace is from the HTML content (tested by setting background-color in css).
I tried different methods of SnapshotKit for the WebView including scrollView. Any idea what I miss? How I can prevent the whitespace and clip it to a given size by JS?
The text was updated successfully, but these errors were encountered:
I try to generate a perfect snapshot of the content of a WebView. The content is bigger than the screen and I get the size of the content handover by JS into the iOS app.
The following image shows a blue UIImageView with the snapshot. The green part is the body of HTML, fixed by setting width and height in JS the same width and height is handover into the app to set the WebView to the same size.
The challenge is that I get a whitespace on the right and the bottom inside the snapshot. The whitespace is from the HTML content (tested by setting background-color in css).
I tried different methods of SnapshotKit for the WebView including scrollView. Any idea what I miss? How I can prevent the whitespace and clip it to a given size by JS?
The text was updated successfully, but these errors were encountered: