react-native-autoheight-webview
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -133,14 +133,9 @@ 'use strict' | ||
// note that it can not get height when there are only text objects in a html body which does not make any sense | ||
const BaseScript = | ||
` | ||
; (function () { | ||
var wrapper = document.createElement('div'); | ||
wrapper.id = 'height-wrapper'; | ||
while (document.body.firstChild) { | ||
wrapper.appendChild(document.body.firstChild); | ||
} | ||
document.body.appendChild(wrapper); | ||
var i = 0; | ||
function updateHeight() { | ||
document.title = wrapper.clientHeight; | ||
document.title = document.body.firstChild.clientHeight; | ||
window.location.hash = ++i; | ||
@@ -147,0 +142,0 @@ } |
{ | ||
"name": "react-native-autoheight-webview", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "An auto height webview for React Native", | ||
@@ -5,0 +5,0 @@ "main": "autoHeightWebView", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
82932
356