diff --git a/platform/safari/Info.plist b/platform/safari/Info.plist index 048bf6173..37223df73 100644 --- a/platform/safari/Info.plist +++ b/platform/safari/Info.plist @@ -27,12 +27,8 @@ Filename popup.html - Height - 310 Identifier popover - Width - 180 Toolbar Items diff --git a/platform/safari/vapi-common.js b/platform/safari/vapi-common.js index 4a607500e..406f49ddb 100644 --- a/platform/safari/vapi-common.js +++ b/platform/safari/vapi-common.js @@ -108,39 +108,18 @@ vAPI.i18n = function(s) { // update popover size to its content if (safari.self.identifier === 'popover') { + var whenSizeChanges = function(d,l){(function(a,d){function h(a,b){a.addEventListener("scroll",b)}function e(){k.style.width=b.offsetWidth+10+"px";k.style.height=b.offsetHeight+10+"px";b.scrollLeft=b.scrollWidth;b.scrollTop=b.scrollHeight;c.scrollLeft=c.scrollWidth;c.scrollTop=c.scrollHeight;f=a.offsetWidth;g=a.offsetHeight}a.b=d;a.a=document.createElement("div");a.a.style.cssText="position:absolute;left:0;top:0;right:0;bottom:0;overflow:scroll;z-index:-1;visibility:hidden";a.a.innerHTML='
'; +a.appendChild(a.a);var b=a.a.childNodes[0],k=b.childNodes[0],c=a.a.childNodes[1],f,g;e();h(b,function(){(a.offsetWidth>f||a.offsetHeight>g)&&a.b();e()});h(c,function(){(a.offsetWidth