Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Somehow you're ending up trying to set a width of <code>-5px</code>; IE doesn't like that. That value is coming from the line <code>$this.css(cssToApply);</code> in JScrollPane.js which gets it from calculating the variable <code>realPaneWidth</code>:</p> <pre><code>var realPaneWidth = paneWidth - settings.scrollbarWidth - settings.scrollbarMargin - p; </code></pre> <p>In that, <code>paneWidth</code> and <code>settings.scrollbarWidth</code> both equal 676, and settings.scrollbarMargin is 5, giving you -5 (p is zero).</p> <p>In <code>kc-gallery.js</code> you appear to be initialising jScrollPane with the value of 676 for <code>scrollbarWidth</code> in the function <code>applyScroll</code>. This is called from the setInterval function assigned to the variable <code>check_images</code>, and that takes us all the way back up the call stack from the place where IE actually errors on setting <code>width</code> to <code>-5px</code>.</p> <p>So it's definitely something to do with the way you're using JScrollPane. You may want to check the documentation for any tips - I've never used that plugin myself, so I'm afraid I can't help with that. However, a <code>scrollbarWidth</code> value of 676 seems a little excessive... <a href="http://www.kelvinluck.com/assets/jquery/jScrollPane/jScrollPane.html" rel="nofollow noreferrer">according to the JScrollPane docs</a>:</p> <blockquote> <p><strong>scrollbarWidth</strong> [int] - the width of the created scrollbar in pixels (defaults to 10)</p> </blockquote>
 

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