File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 693693
694694 opts = opts || { } ;
695695
696+ // if row property exists, replace minRow and maxRow
697+ if ( opts . row ) {
698+ opts . minRow = opts . row ;
699+ opts . maxRow = opts . row ;
700+ }
701+
696702 this . $el = $ ( el ) ; // TODO: legacy code
697703 this . el = this . $el . get ( 0 ) ; // exposed HTML element to the user
698704
711717 this . opts = Utils . defaults ( opts , {
712718 row : parseInt ( this . $el . attr ( 'data-gs-row' ) ) || 0 ,
713719 column : parseInt ( this . $el . attr ( 'data-gs-column' ) ) || 12 ,
714- minRow : opts . row || parseInt ( this . $el . attr ( 'data-gs-row' ) ) ? opts . row || parseInt ( this . $el . attr ( 'data-gs-row' ) ) : parseInt ( this . $el . attr ( 'data-gs-min-row' ) ) || 0 ,
715- maxRow : opts . row || parseInt ( this . $el . attr ( 'data-gs-row' ) ) ? opts . row || parseInt ( this . $el . attr ( 'data-gs-row' ) ) : parseInt ( this . $el . attr ( 'data-gs-max-row' ) ) || 0 ,
720+ minRow : parseInt ( this . $el . attr ( 'data-gs-row' ) ) ? parseInt ( this . $el . attr ( 'data-gs-row' ) ) : parseInt ( this . $el . attr ( 'data-gs-min-row' ) ) || 0 ,
721+ maxRow : parseInt ( this . $el . attr ( 'data-gs-row' ) ) ? parseInt ( this . $el . attr ( 'data-gs-row' ) ) : parseInt ( this . $el . attr ( 'data-gs-max-row' ) ) || 0 ,
716722 itemClass : 'grid-stack-item' ,
717723 placeholderClass : 'grid-stack-placeholder' ,
718724 placeholderText : '' ,
You can’t perform that action at this time.
0 commit comments