Closed timokae closed 3 years ago
Thanks, got it. It is needed to use the Optional Sizes
I would go for a new setting, modalDialogClass
.
We may use modalClass
for other purposes (attach custom js events / custom style) and that would be a breaking change
@vjt thoughts?
Just noticed that this is already addressed by #75
Does the change in #75 work for your use case?
Good catch. Yes, this would also work for my use case. No need for my changes then.
Superseded by #91
When using the
modalClass
property the class gets inserted at the wrong place, resulting in not resizing and not centering the modal on the page. Instead of placing the class in the modal div it must be used in the modal-dialog div.Old behaviour
New behaviour
I tested the new version for both, Bootstrap 3 and 4 and created a jsFiddle (with BS4).