This project is archived and is in readonly mode.

#82 ✓wontfix
xtof

Sortable and Scroll do not get along well (1.2b2)

Reported by xtof | June 2nd, 2008 @ 05:01 PM

When I use the Sortable inside an overlow:scroll div, the drag'n drop position is wrong when the scroll-top > 0.

example :

<div id="container" style="width:200px;height:200px;overflow:scroll">

<ul id="list" class="list">

<li class="sortme">0</li>

<li class="sortme">1</li>

<li class="sortme">2</li>

<li class="sortme">3</li>

<li class="sortme">4</li>

<li class="sortme">5</li>

<li class="sortme">6</li>

<li class="sortme">7</li>

<li class="sortme">8</li>

<li class="sortme">9</li>

<li class="sortme">10</li>

</ul>

</div>

<script type="text/javascript">

new Scroller('container');

new Sortables('list');

</script>

Comments and changes to this ticket

  • xtof

    xtof June 2nd, 2008 @ 05:01 PM

    <div id="container" style="width:200px;height:200px;overflow:scroll">

    <ul id="list" class="list">

    <li class="sortme">0</li>

    <li class="sortme">1</li>

    <li class="sortme">2</li>

    <li class="sortme">3</li>

    <li class="sortme">4</li>

    <li class="sortme">5</li>

    <li class="sortme">6</li>

    <li class="sortme">7</li>

    <li class="sortme">8</li>

    <li class="sortme">9</li>

    <li class="sortme">10</li>

    </ul>

    </div>

    <script type="text/javascript">

    new Scroller('container');

    new Sortables('list');

    </script>

  • Aaron Newton

    Aaron Newton February 19th, 2009 @ 12:28 AM

    • Assigned user changed from “Valerio” to “Aaron Newton”
    • Milestone cleared.
  • p3mbo

    p3mbo June 10th, 2009 @ 10:08 AM

    Does anyone have a quick fix for this issue? It only seems to happen in IE.

  • fakedarren

    fakedarren February 8th, 2010 @ 05:23 PM

    • State changed from “new” to “hold”
    • Assigned user changed from “Aaron Newton” to “fakedarren”

    I hope this is resolved with all the other scroll / IE issues. xtof - any chance you can provide an example in mooshell (http://mootools.net/shell) ? if not I will do so when I get round to it.

  • Christoph Pojer

    Christoph Pojer November 9th, 2010 @ 07:25 PM

    • State changed from “hold” to “wontfix”
    • Milestone order changed from “0” to “0”

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

Pages