We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f89020e commit e22c5dcCopy full SHA for e22c5dc
src/display/editor/stamp.js
@@ -252,6 +252,8 @@ class StampEditor extends AnnotationEditor {
252
width *= factor;
253
height *= factor;
254
}
255
+ width = Math.ceil(width);
256
+ height = Math.ceil(height);
257
const [parentWidth, parentHeight] = this.parentDimensions;
258
this.setDims(
259
(width * parentWidth) / pageWidth,
@@ -288,7 +290,7 @@ class StampEditor extends AnnotationEditor {
288
290
const TIME_TO_WAIT = 200;
289
291
this.#resizeTimeoutId = setTimeout(() => {
292
this.#resizeTimeoutId = null;
- this.#drawBitmap(width, height);
293
+ this.#drawBitmap(Math.ceil(width), Math.ceil(height));
294
}, TIME_TO_WAIT);
295
296
0 commit comments