Skip to content

Commit

Permalink
minRow tweaks
Browse files Browse the repository at this point in the history
* code and doc tweaks for gridstack#1172
  • Loading branch information
adumesny committed May 12, 2020
1 parent 0272fb3 commit e1a35c6
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/gridstack.js
Original file line number Diff line number Diff line change
Expand Up @@ -701,12 +701,6 @@

opts = opts || {};

// if row property exists, replace minRow and maxRow
if (opts.row) {
opts.minRow = opts.row;
opts.maxRow = opts.row;
}

this.$el = $(el); // TODO: legacy code
this.el = this.$el.get(0); // exposed HTML element to the user

Expand All @@ -731,7 +725,6 @@

// elements attributes override any passed options (like CSS style) - merge the two together
this.opts = Utils.defaults(opts, {
row: parseInt(this.$el.attr('data-gs-row')) || 0,
column: parseInt(this.$el.attr('data-gs-column')) || 12,
minRow: rowAttr ? rowAttr : parseInt(this.$el.attr('data-gs-min-row')) || 0,
maxRow: rowAttr ? rowAttr : parseInt(this.$el.attr('data-gs-max-row')) || 0,
Expand Down

0 comments on commit e1a35c6

Please sign in to comment.