nakupanda / bootstrap3-dialog

Make use of Twitter Bootstrap's modal more monkey-friendly.
https://nakupanda.github.io/bootstrap3-dialog/
1.89k stars 664 forks source link

How to adjust dialog to the height and width of the message ? #209

Open sasikanth opened 8 years ago

sasikanth commented 8 years ago
 BootstrapDialog.alert({
           ...
            size:  BootstrapDialog.SIZE_WIDE,
            message: '<div> ... </div>' //wide html content

The content is overflowing out of the dialog box.

How can we make the dialog adjust to the height and width of the message. ?

Is there any option like overflow : true / false, width: auto / 300px, etc height: auto/ 40vh

Thanks, Sasi

nakupanda commented 8 years ago

Not sure how to achieve having width to be auto adjusted, but height is actually auto expanding isn't it?

sasikanth commented 8 years ago

Yes, height is auto expanding..

Width is not

sasikanth commented 8 years ago

if not auto expand, Is there a way to specify width or max width in the options.

nakupanda commented 8 years ago

Yes, please see http://jsfiddle.net/8g0h0h9q/1/

sasikanth commented 8 years ago

Ohh you mean using CSS.. :)

nakupanda commented 8 years ago

Yes, so using css does not meet your requirement ?

sasikanth commented 8 years ago

The idea was to minimise HTML, CSS. And standardize the look and feel of each modal. So, we started trying this out and see if it fits in.

Being able to customize width at bootstrapDialog initialization would avoid CSS for modal.

Would you able to consider this as a feature request ?

nakupanda commented 8 years ago

Sure, that makes sense.