diff --git a/src/core/xfa/template.js b/src/core/xfa/template.js index 594ab25a7..6a5b6480f 100644 --- a/src/core/xfa/template.js +++ b/src/core/xfa/template.js @@ -1321,7 +1321,7 @@ class CheckButton extends XFAObject { [$toHTML](availableSpace) { // TODO: border, shape and mark. - const style = toStyle("margin"); + const style = toStyle(this, "margin"); const size = measureToString(this.size); style.width = style.height = size;