At line
|
var strictCellHeight = Math.ceil(o.outerHeight() / o.attr('data-gs-height')); |
is some mistake, IMHO because you forgot to take in equation vertical margin.
example:
cellHeight = 80px and vertical margin = 20px
item height is 3, minHeight is 2
minHeight in pixels should be 80 x 2 + 20 = 180px. but at pointed line is counted number 188px
803 + 220 = 280
280 / 3 = 93.3 ~= 94
94 * 2 = 188px
At line
gridstack.js/src/gridstack.js
Line 1281 in 17fcce8
is some mistake, IMHO because you forgot to take in equation vertical margin.
example:
cellHeight = 80px and vertical margin = 20px
item height is 3, minHeight is 2
minHeight in pixels should be 80 x 2 + 20 = 180px. but at pointed line is counted number 188px
803 + 220 = 280
280 / 3 = 93.3 ~= 94
94 * 2 = 188px