CanvasTileLayer: Enable extra width for comments in PDF.

Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I062f235ddf15ecce83f746879c09169763209629
This commit is contained in:
Gökay Şatır 2021-05-03 18:35:06 +03:00 committed by Gökay ŞATIR
parent 138fafa6cc
commit 78919c95f5

View file

@ -5422,7 +5422,7 @@ L.CanvasTileLayer = L.Layer.extend({
var dpiScale = this._painter._dpiScale;
var extraSize = new L.Point(0, 0);
if (this._docType === 'presentation')
if (this._docType === 'presentation' || (this._docType === 'drawing' && app.file.fileBasedView))
extraSize = this._annotationManager.allocateExtraSize(); // This changes only the width.
var docPixelLimits = new L.Point(this._docWidthTwips / this.options.tileWidthTwips,