mirror of
https://github.com/pretix/pretix.git
synced 2026-04-25 23:42:32 +00:00
PDF editor: Fix scaling with browser zoom (Z#23112370) (#2929)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user