Merge pull request #19883 from gpanakkal/checkbutton-tostyle

Fix arguments in `toStyle` call in `CheckButton`
This commit is contained in:
calixteman 2025-05-01 22:08:03 +02:00 committed by GitHub
commit 91bfe12f38
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;