disable scaling of column-header with zoom...

until we have a better solution. It messes up the positioning of headers
w.r.t the map at certain zooms.

Change-Id: I32422a5f5076f83631f28a90db6a543e830ccf0e
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98150
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Dennis Francis <dennis.francis@collabora.com>
This commit is contained in:
Dennis Francis 2020-06-05 20:45:34 +05:30
parent ed812c066a
commit e6421d253b

View file

@ -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;