From 1f8f4f1a7f6ca8efe38488f35e61eac41ef15ce7 Mon Sep 17 00:00:00 2001 From: Julian Leucker <leuckerj@gmail.com> Date: Tue, 15 Aug 2023 00:05:00 +0200 Subject: [PATCH] Warn if multipleItemsY is true and some items have width > 1 --- src/DragGrid.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/DragGrid.vue b/src/DragGrid.vue index 5d6e73b..49bba44 100644 --- a/src/DragGrid.vue +++ b/src/DragGrid.vue @@ -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 = []; -- GitLab