diff --git a/loleaflet/src/control/Control.ColumnHeader.js b/loleaflet/src/control/Control.ColumnHeader.js index 254a4df41..80559a20d 100644 --- a/loleaflet/src/control/Control.ColumnHeader.js +++ b/loleaflet/src/control/Control.ColumnHeader.js @@ -398,14 +398,6 @@ L.Control.ColumnHeader = L.Control.Header.extend({ this._setCanvasWidth(); this._setCanvasHeight(); this._canvasContext.clearRect(0, 0, canvas.width, canvas.height); - if (this._map._permission === 'edit') { - // Adjust (column) _headerHeight according to zoomlevel. This is used below to call resize() - // where column/corner header are resized. Besides the document container and row header container - // are moved up or down as required so that there is no gap/overlap below column header. - // Limit zoomScale so that the column header is not too small (unreadable) or too big. - this._headerHeight = Math.ceil(this._canvasBaseHeight * - this.getHeaderZoomScale(/* lowerBound */ 0.74, /* upperBound */ 1.15)); - } // Reset state this._current = -1;