i have an issue where the popup keeps growing due to an inconsistency in the width as set using style.width and the value returned via offsetWidth. They differ slightly causing the window to grow (and performance in general to suffer due to a feedback loop)
updateParentScopeOptions: function(options,element){
var $element = element[0];
options.position.left = $element.offsetLeft;
options.position.top = $element.offsetTop;
if($element.getElementsByClassName('content')[0].style.display != 'none'){
options.width = $element.offsetWidth; // <-- offsetWidth is slightly larger than the originally set offset.width
options.height = $element.offsetHeight;
}
}
updateElementSize: function(...){
...
$element.style.width = width;
...