PDF editor: Fix scaling with browser zoom (Z#23112370) (#2929)

This commit is contained in:
ser8phin
2022-11-28 13:54:55 +01:00
committed by GitHub
parent b72dc0ce8e
commit ea9a96e124

View File

@@ -387,8 +387,8 @@ var editor = {
},
_init_fabric: function (dump) {
editor.$fcv.get(0).width = editor.$pdfcv.get(0).width;
editor.$fcv.get(0).height = editor.$pdfcv.get(0).height;
editor.$fcv.get(0).width = editor.pdf_viewport.width;
editor.$fcv.get(0).height = editor.pdf_viewport.height;
editor.fabric = new fabric.Canvas('fabric-canvas');
editor.fabric.on('object:modified', editor._create_savepoint);