title: Using SimpleModal (jQuery plugin) to display a popup iFrame without unnecessary scrollbars
body: <p>I'm using SimpleModal:</p>
  
  <p><a href="http://www.ericmmartin.com/projects/simplemodal/" rel="nofollow noreferrer">http://www.ericmmartin.com/projects/simplemodal/</a></p>
  
  <p>And displaying an iframe, as per the example:</p>
  
  <pre><code>// Display an external page using an iframe
  var src = "http://365.ericmmartin.com/";
  $.modal('&lt;iframe src="' + src + '" height="450" width="830" style="border:0"&gt;', {
      closeHTML:"",
      containerCss:{
          backgroundColor:"#fff",
          borderColor:"#fff",
          height:450,
          padding:0,
          width:830
      },
      overlayClose:true
  });
  </code></pre>
  
  <p>And the popup has <em>two</em> sets of scrollbars, one perhaps for the HTML element representing the popup, and one for the iFrame. Try the demo to see: <a href="http://www.ericmmartin.com/projects/simplemodal/#examples" rel="nofollow noreferrer">http://www.ericmmartin.com/projects/simplemodal/#examples</a></p>
  
  <p>Ideally I'd like no scrollbars if the content fits, otherwise a single vertical scrollbar.</p>
  
  <p>Any ideas? Thanks!</p>
  
  <ul>
  <li>Alex</li>
  </ul>