TileRenderer: Explicitly set sortable direction to horizontal

Since Sortable.js v1.8.0-rc1 the automatic detection seems unreliable.
This commit is contained in:
Johannes Meyer 2018-12-20 10:08:58 +01:00
parent 67ba5205e2
commit f07441ae8f

View file

@ -22,6 +22,7 @@ class TileRenderer extends Renderer
'data-sortable-disabled' => $this->isLocked(),
'data-sortable-data-id-attr' => 'id',
'data-sortable-filter' => '.addnew',
'data-sortable-direction' => 'horizontal', // Otherwise movement is buggy on small lists
'data-csrf-token' => CsrfToken::generate(),
'data-action-url' => $this->getUrl()->getAbsoluteUrl()
]