ducksboard / gridster.js

gridster.js is a jQuery plugin that makes building intuitive draggable layouts from elements spanning multiple columns
http://gridster.net/
MIT License
6.03k stars 1.2k forks source link

li within a cell can be dragged #534

Open svenar-nl opened 9 years ago

svenar-nl commented 9 years ago
<div class="gridster">
  <ul>
    <li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
      <div>
        <ul>
          <li>Test1</li>
          <li>Test2</li>
        </ul>
      </div>
    </li>
  </ul>
</div>

The cell is draggable but the text (test1, test2) also.

SLankester commented 9 years ago

Not a direct fault of gridster itself. Can solved by: In JavaScript change the selecter to only selecting direct child lists > gridster = $(".gridster > ul"),gridster. In CSS change the selector .gridster > ul {list-style-type:none;}