fix refactoring mistake

This commit is contained in:
Laura Klünder 2018-12-12 02:42:44 +01:00
parent a2e53ecc31
commit 1136fd87b8

View file

@ -1578,7 +1578,7 @@ L.SquareGridLayer = L.Layer.extend({
center = (lastCoord+coord)/2;
if (size > 0) {
this.rows[i].style.display = '';
this.rows[i].style.height = (lastCoord-coord)+'px';
this.rows[i].style.height = size+'px';
this.rows[i].style.paddingRight = Math.max(0, Math.min(36, (center-bottomRightStart)*2)) + 'px';
} else {
this.rows[i].style.display = 'none';