|
@@ -780,7 +780,6 @@ export default class CheckBox extends Base {
|
|
|
right: end.x,
|
|
|
bottom: end.y
|
|
|
}
|
|
|
- this.rect = rect
|
|
|
|
|
|
this.eventBus.dispatch('annotationChange', {
|
|
|
type: 'modify',
|
|
@@ -1008,8 +1007,8 @@ export default class CheckBox extends Base {
|
|
|
|
|
|
const imageArray = await this.messageHandler.sendWithPromise('GetRenderAnnot', {
|
|
|
annotPtr: this.annotation.annotPtr,
|
|
|
- rect: this.rect || this.annotation.rect,
|
|
|
- scale: this.scale * this.layer.ratio
|
|
|
+ width: imgRect.width,
|
|
|
+ height: imgRect.height
|
|
|
})
|
|
|
|
|
|
const canvas = document.createElement('canvas')
|
|
@@ -1037,6 +1036,7 @@ export default class CheckBox extends Base {
|
|
|
imgEle.style.width = '100%'
|
|
|
imgEle.style.height = '100%'
|
|
|
imgEle.style.pointerEvents = 'none'
|
|
|
+ imgEle.style.position = 'absolute'
|
|
|
|
|
|
imgEle.src = imgSrc
|
|
|
this.imgEle = imgEle
|