Skip to content
Snippets Groups Projects
Commit 1f8f4f1a authored by Julian's avatar Julian
Browse files

Warn if multipleItemsY is true and some items have width > 1

parent 7d92b98b
No related branches found
No related tags found
1 merge request!11Overlapping items in a column
...@@ -311,6 +311,13 @@ export default { ...@@ -311,6 +311,13 @@ export default {
items() { items() {
if (!this.multipleItemsY) return this.value; 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 // calculate numSiblings for each field
// First dimension: the columns // First dimension: the columns
let xSiblings = []; let xSiblings = [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment