Merge branch 'master' into 'live'
Fix modal resizing See merge request !103
This commit is contained in:
commit
b64ab904e8
@ -82,7 +82,7 @@
|
|||||||
frame.setAttribute('id', "frame-" + modal.getAttribute('id'));
|
frame.setAttribute('id', "frame-" + modal.getAttribute('id'));
|
||||||
modal.insertBefore(frame, null);
|
modal.insertBefore(frame, null);
|
||||||
|
|
||||||
frame.onload = function() {
|
var resizeFrame = function() {
|
||||||
frame.style.visibility = 'hidden';
|
frame.style.visibility = 'hidden';
|
||||||
frame.style.height = '0';
|
frame.style.height = '0';
|
||||||
|
|
||||||
@ -92,11 +92,16 @@
|
|||||||
|
|
||||||
frame.style.height = height.toPrecision() + "px";
|
frame.style.height = height.toPrecision() + "px";
|
||||||
frame.style.visibility = 'visible';
|
frame.style.visibility = 'visible';
|
||||||
// frame.setAttribute("scrolling", "no");
|
frame.setAttribute("scrolling", "no");
|
||||||
|
|
||||||
doc.querySelectorAll("form").forEach(function(form) {
|
doc.querySelectorAll("form").forEach(function(form) {
|
||||||
form.setAttribute("target", "_top");
|
form.setAttribute("target", "_top");
|
||||||
});
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
frame.onload = function() {
|
||||||
|
frame.contentWindow.onresize = resizeFrame;
|
||||||
|
resizeFrame();
|
||||||
}
|
}
|
||||||
|
|
||||||
var url = "";
|
var url = "";
|
||||||
|
|||||||
Reference in New Issue
Block a user