-2
rated 0 times
[
3]
[
5]
/ answers: 1 / hits: 22925
/ 11 Years ago, wed, january 29, 2014, 12:00:00
I need to resize this bootstrap
modal based on the height of the iframe
content because it is dynamic.
Using an onload
and the following function I am getting nothing.
window.resizeIframe = function () {
var frame = $('#custom-frame');
var modalHeight = $('#custom-frame').contents().height();
frame.height(modalHeight);
$(window).resize(function() {
frame.height(modalHeight);
});
};
I've provided a plunker:
http://plnkr.co/edit/eElqXJwvxmpc1XMrdwIK?p=preview
More From » jquery