Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using the loadUrl option problem #79

Open
realloka opened this issue Nov 17, 2022 · 0 comments
Open

Using the loadUrl option problem #79

realloka opened this issue Nov 17, 2022 · 0 comments

Comments

@realloka
Copy link

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; ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant