Lists now moveable when swimlane requires scrolling

Fixes: #4322
This commit is contained in:
Martin Filser 2022-01-29 14:56:06 +01:00
parent a48e537b2d
commit 32af18b33d
3 changed files with 8 additions and 2 deletions

View file

@ -62,7 +62,7 @@ function initSortable(boardComponent, $listsDom) {
distance: 7,
start(evt, ui) {
ui.placeholder.height(ui.helper.height());
ui.placeholder.css("min-width", ui.helper.width());
ui.placeholder.width(ui.helper.width());
EscapeActions.executeUpTo('popup-close');
boardComponent.setIsDragging(true);
},

View file

@ -36,6 +36,11 @@
// Minimize swimlanes end https://www.w3schools.com/howto/howto_js_accordion.asp
*/
@media screen and (min-width: 801px)
.swimlane.ui-sortable
// swimlane must have max width, otherwise lists are not sortable if there are too much lists and the swimlane "scrollable"
width: max-content
[class=swimlane]
position: sticky
left: 0