Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vue-draggable-grid
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Libraries
vue-draggable-grid
Merge requests
!11
Overlapping items in a column
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Overlapping items in a column
multiple-items-y
into
main
Overview
0
Commits
5
Pipelines
1
Changes
1
Merged
Julian
requested to merge
multiple-items-y
into
main
1 year ago
Overview
0
Commits
5
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Viewing commit
1f8f4f1a
Prev
Next
Show latest version
1 file
+
7
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
1f8f4f1a
Warn if multipleItemsY is true and some items have width > 1
· 1f8f4f1a
Julian
authored
1 year ago
src/DragGrid.vue
+
7
−
0
Options
@@ -311,6 +311,13 @@ export default {
items
()
{
if
(
!
this
.
multipleItemsY
)
return
this
.
value
;
if
(
this
.
value
.
some
((
item
)
=>
item
.
w
>
1
))
{
console
.
warn
(
"
You are using multipleItemsY but some items have a width greater than 1.
"
,
"
This is not supported and will lead to unexpected behaviour.
"
);
}
// calculate numSiblings for each field
// First dimension: the columns
let
xSiblings
=
[];
Loading