File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
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
+ - [ 6.0.2-dev (TBD)] ( #602-dev-tbd )
8
9
- [ 6.0.2 (2022-09-23)] ( #602-2022-09-23 )
9
10
- [ 6.0.1 (2022-08-27)] ( #601-2022-08-27 )
10
11
- [ 6.0.0 (2022-08-21)] ( #600-2022-08-21 )
@@ -71,6 +72,9 @@ Change log
71
72
72
73
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
73
74
75
+ ## 6.0.2-dev (TBD)
76
+ * fixed [ #2055 ] ( https://github.com/gridstack/gridstack.js/issues/2055 ) maxRow=1 resize outside
77
+
74
78
## 6.0.2 (2022-09-23)
75
79
* fixed [ #2034 ] ( https://github.com/gridstack/gridstack.js/issues/2034 ) ` removeWidget() ` breaking resize handle feedback
76
80
* fixed [ #2043 ] ( https://github.com/gridstack/gridstack.js/issues/2043 ) when swapping shapes in maxRow grid, make sure we still check for 50% coverage
Original file line number Diff line number Diff line change @@ -543,10 +543,10 @@ export class GridStackEngine {
543
543
if ( ! clonedNode ) return false ;
544
544
545
545
// check if we're covering 50% collision and could move
546
- let canMove = clone . moveNode ( clonedNode , o ) ;
547
- // make sure we are still valid grid max, else check if we can force a swap (float=true, or different shapes) on non-resize
548
- if ( ! o . resizing && canMove && o . collide && this . float && clone . getRow ( ) > this . maxRow ) {
549
- let collide = o . collide . el . gridstackNode ; // find the source node the clone collided with
546
+ let canMove = clone . moveNode ( clonedNode , o ) && clone . getRow ( ) <= this . maxRow ;
547
+ // else check if we can force a swap (float=true, or different shapes) on non-resize
548
+ if ( ! canMove && ! o . resizing && o . collide ) {
549
+ let collide = o . collide . el . gridstackNode ; // find the source node the clone collided with at 50%
550
550
if ( this . swap ( node , collide ) ) { // swaps and mark dirty
551
551
this . _notify ( ) ;
552
552
return true ;
You can’t perform that action at this time.
0 commit comments