We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4bd1ea1 + c943199 commit 51b736bCopy full SHA for 51b736b
src/gridstack.js
@@ -1296,7 +1296,7 @@
1296
// TODO: cellHeight = cellHeight() causes issue (i.e. remove strictCellHeight above) otherwise
1297
// when sizing up we jump almost right away to next size instead of half way there. Not sure
1298
// why as we don't use ceil() in many places but round() instead.
1299
- cellHeight = self.$el.height() / parseInt(self.$el.attr('data-gs-current-row'));
+ cellHeight = (self.$el.height() + grid.verticalMargin()) / parseInt(self.$el.attr('data-gs-current-row'));
1300
self.placeholder
1301
.attr('data-gs-x', o.attr('data-gs-x'))
1302
.attr('data-gs-y', o.attr('data-gs-y'))
0 commit comments