public/blog/wp-content/plugins/ig-pagebuilder/assets/innogears/js/handle_element.js
/**
	 * Method to resize modal when window resized
	 */
Method to resize modal when window resized
Method to resize modal when window resized
function resetModalSize(has_submodal, _return) {
		var modal_width, modal_height;
		if( has_submodal == 0 ){
			modal_width = ($(window).width() > 750) ? 750 : $(window).width()*0.9;
			modal_height = $(window.parent).height()*0.9;
		}
		else{
			modal_width = (parent.document.body.clientWidth > 800) ? 800 : parent.document.body.clientWidth*0.9;
			modal_height = parent.document.body.clientHeight*0.95;
		}
		if (_return == 'w'){
			return modal_width;
		}else{
			return modal_height;
		}
	}
function resetModalSize ( has_submodal , _return ) { var modal_width , modal_height ; if ( has_submodal == 0 ) { modal_width = ( $ ( window ) . width ( ) > 750 ) ? 750 : $ ( window ) . width ( ) * 0.9 ; modal_height = $ ( window . parent ) . height ( ) * 0.9 ; } else { modal_width = ( parent . document . body . clientWidth > 800 ) ? 800 : parent . document . body . clientWidth * 0.9 ; modal_height = parent . document . body . clientHeight * 0.95 ; } if ( _return == 'w' ) { return modal_width ; } else { return modal_height ; } }
Method to resize modal when window resized
Method to resize modal when window resized