-
Notifications
You must be signed in to change notification settings - Fork 253
Open
Description
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; ...
Metadata
Metadata
Assignees
Labels
No labels