Skip to content

Commit

Permalink
Merge pull request #2034 from Yopai/patch-1
Browse files Browse the repository at this point in the history
Trick for emptyInsertThreshold
  • Loading branch information
owen-m1 committed Jun 27, 2021
2 parents e294ab9 + 7d0c6a0 commit 101b92e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Expand Up @@ -521,6 +521,19 @@ The distance (in pixels) the mouse must be from an empty sortable while dragging

Demo: https://jsbin.com/becavoj/edit?js,output

An alternative to this option would be to set a padding on your list when it is empty.

For example:
```css
ul:empty {
padding-bottom: 20px;
}
```

Warning: For `:empty` to work, it must have no node inside (even text one).

Demo:
https://jsbin.com/yunakeg/edit?html,css,js,output

---
### Event object ([demo](https://jsbin.com/fogujiv/edit?js,output))
Expand Down

0 comments on commit 101b92e

Please sign in to comment.