File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ Change log
5
5
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
6
6
** Table of Contents** * generated with [ DocToc] ( http://doctoc.herokuapp.com/ ) *
7
7
8
+ - [ 9.1.1-dev (TBD)] ( #911-dev-tbd )
8
9
- [ 9.1.1 (2023-09-06)] ( #911-2023-09-06 )
9
10
- [ 9.1.0 (2023-09-04)] ( #910-2023-09-04 )
10
11
- [ 9.0.2 (2023-08-29)] ( #902-2023-08-29 )
@@ -97,6 +98,9 @@ Change log
97
98
98
99
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
99
100
101
+ ## 9.1.1-dev (TBD)
102
+ * fix [ #2449 ] ( https://github.com/gridstack/gridstack.js/issues/2449 ) full grid maxRow fix
103
+
100
104
## 9.1.1 (2023-09-06)
101
105
* fix [ #2435 ] ( https://github.com/gridstack/gridstack.js/issues/2435 ) directionCollideCoverage() tweaks
102
106
* fix resizeToContent() to handle node.h (using when cellHeight changes or we resize) vs DOM sizing (rest of the time)
Original file line number Diff line number Diff line change @@ -591,8 +591,9 @@ export class GridStackEngine {
591
591
} ) ;
592
592
if ( ! clonedNode ) return false ;
593
593
594
- // check if we're covering 50% collision and could move
595
- let canMove = clone . moveNode ( clonedNode , o ) && clone . getRow ( ) <= this . maxRow ;
594
+ // check if we're covering 50% collision and could move, while still being under maxRow or at least not making it worse
595
+ // (case where widget was somehow added past our max #2449)
596
+ let canMove = clone . moveNode ( clonedNode , o ) && clone . getRow ( ) <= Math . max ( this . getRow ( ) , this . maxRow ) ;
596
597
// else check if we can force a swap (float=true, or different shapes) on non-resize
597
598
if ( ! canMove && ! o . resizing && o . collide ) {
598
599
let collide = o . collide . el . gridstackNode ; // find the source node the clone collided with at 50%
You can’t perform that action at this time.
0 commit comments