From 7bba3bd4adf85204e3b3d12ed35c740f7d0e1869 Mon Sep 17 00:00:00 2001 From: Gautam Panakkal Date: Thu, 3 Apr 2025 20:27:40 -0700 Subject: [PATCH] Add missing `this` arg to `toStyle` in `CheckButton.prototype.[$toHTML]` --- 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;