Skip to content

Using the loadUrl option problem #79

Description

@realloka

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions