bpopup icon indicating copy to clipboard operation
bpopup copied to clipboard

Using the loadUrl option problem

Open realloka opened this issue 2 years ago • 0 comments

Using the loadUrl option, there seems to be a bug that changes the size when pop-up pops up again.

When the pop-up is closed, csss such as width: 'auto', height: 'auto' are added automatically, and as it is added, the size of the pop-up (DIV) decreases.


function onCompleteCallback(open){
	if(open){
		bindEvents();
		triggerCall(callback);
		if(o.autoClose){
			autoCloseTO = setTimeout(close, o.autoClose);
		}
	} else {
		$popup.hide();
		triggerCall(o.onClose);
		if (o.loadUrl) {
			o.contentContainer.empty();
			$popup.css({height: 'auto', width: 'auto'});//<-- this!!!
		}
	}
};

The most efficient way to prevent div pop-up sizes from decreasing is as follows. When defining the width of the pop-up div in the css file, add '!important' to the width size

.popup_layer.popup_setting { width:1050px; ... -> .popup_layer.popup_setting { width:1050px !important; ...

realloka avatar Nov 17 '22 00:11 realloka