Note that there are some explanatory texts on larger screens.

plurals
  1. PODiv vs. iFrame - resizing issue
    primarykey
    data
    text
    <p>I am trying to create a resizable content pane, that will load from a local file<sup>1</sup> when different links are clicked on the main content side of the page.</p> <p>I've tried two approaches. The first is to use a &lt;div&gt;, but I haven't found a good way to load from external sources<sup>2</sup> this way. So instead I am using an iFrame within a div.</p> <p>However, I'm having some trouble resizing the main content properly using the iFrame. With similar code, the pure-div version resizes properly: <a href="http://jsfiddle.net/jvnn6/4/" rel="nofollow">http://jsfiddle.net/jvnn6/4/</a></p> <p>However, when I try using an iFrame, the content on the left half of the page aren't resizing correctly. <a href="http://jsfiddle.net/JX4yM/" rel="nofollow">http://jsfiddle.net/JX4yM/</a></p> <p>Here, I added the following CSS:</p> <pre><code> .ui-resizable-helper { border: 50px solid rgba(239, 239, 239, .9); margin: -75px; } </code></pre> <p>and this to jQuery</p> <pre><code>helper: "ui-resizable-helper", </code></pre> <p>What's going on? (I had to add the .ui-resizable-helper because resizing works weird when the mouse moves over an iFrame. Here is an example: <a href="http://jsfiddle.net/36S7p/1/" rel="nofollow">http://jsfiddle.net/36S7p/1/</a>)</p> <p>====================================================================</p> <p><sup>1</sup>: I have no plans to host it online anytime soon</p> <p><sup>2</sup>: An alternative, of course, is to embed everything in my webpage itself, and just hide/reveal different parts in the right-hand pane as needed. There's some structural issues with that however, which I won't get into.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload