mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 04:11:49 +02:00
Home: Avoid impossible (negative) span
This commit is contained in:
parent
e7f10c711c
commit
85efe66b33
@ -503,7 +503,10 @@ export class HomeApp extends EgwApp
|
|||||||
{
|
{
|
||||||
if(col + span > maxColumn)
|
if(col + span > maxColumn)
|
||||||
{
|
{
|
||||||
span = Math.min(span, (maxColumn - (parseInt(Object.keys(col_map[row]).at(-1)) || col)));
|
span = Math.max(
|
||||||
|
1,
|
||||||
|
Math.min(span, (maxColumn - (parseInt(Object.keys(col_map[row]).at(-1)) || col)))
|
||||||
|
);
|
||||||
}
|
}
|
||||||
// Set column to auto to avoid overlap
|
// Set column to auto to avoid overlap
|
||||||
n.style.gridColumn = "auto / span " + span;
|
n.style.gridColumn = "auto / span " + span;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user