简体   繁体   中英

jquery dialog not showing scrollbars

I have this definition for the jquery dialog plugin:

$("#DonateForm").dialog({
    modal: true,
    autoOpen: false,
    minWidth: 600,
    maxWidth: 700,
    minHeight: 250,
    maxHeight: 350,
    resizable: true
});

I have a complicated DIV form like:

<div id="DonateForm">
  <div id="DonateFormInner">
    .. Complex form ..
  </div>
</div>

But for some reason, the plugin doesn't scroll... any idea why?

You probably have to give your container "overflow: auto":

<div id='DonateForm' style='overflow: auto'>
</div>

Depending on the situation, it might be easier to work with the inner <div> .

The minXXX, maxXXX settings define the minimum and maximum width and height values that the dialog can be resized to. You can define a starting width and height when creating the dialog and the scroll bar will appear when the dialog is initially rendered.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM