From 9a7c3e727a22c15f5d876daa96984892f5f10599 Mon Sep 17 00:00:00 2001 From: gpanakkal <111669555+gpanakkal@users.noreply.github.com> Date: Thu, 10 Apr 2025 12:24:03 -0700 Subject: [PATCH] Pass CheckButton node into `toStyle` call --- src/core/xfa/template.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;