sarrrrek
sarrrrek

Reputation: 148

Dialog and auto-height

So for replies I created a a jQuery dialog. This dialog has the following settings:

$("#reply-window").dialog({
  autoOpen: false,
  resizable: false,
  modal: true,
  autoResize: true
});

There is still a scrollbar inside of the dialog. If I change the CSS for #reply-window to

height: XYZpx;

I can modify the height attribute. With the default

height: auto;

The dialoge is too small and I have to deal with a scroll bar inside.

Upvotes: 0

Views: 668

Answers (2)

jero
jero

Reputation: 543

you could set the min height attribute for the dialog box.

 minHeight: 600

Upvotes: 0

TypedSource
TypedSource

Reputation: 708

sorry for the answer, i still can not write comments.

are you using bootstrap? if yes, have a look on the modal and use this. it automatily is scrollable and you can put in whatever you want

Upvotes: 1

Related Questions