Enforce maximum height of signwell fields
authorMagnus Hagander <magnus@hagander.net>
Tue, 24 Jun 2025 13:11:47 +0000 (15:11 +0200)
committerMagnus Hagander <magnus@hagander.net>
Tue, 24 Jun 2025 13:14:11 +0000 (15:14 +0200)
commit1febf08ad2ff6ff835dc51433d52d6d0766056bb
treeef1450a7d1d76c6fffaad500b3a7b76caa44abb8
parent738f80fc75113ef6522c4a15eb969d0f16f21697
Enforce maximum height of signwell fields

Signwell have implemented a size limitation that no fields can have a
height bigger than 34px. Unfortunately, their own GUI editor allows the
creation of fields that are larger than this, and once one has done that
they can no longer be loaded for editing or sent through the API (it
appears the limitation is only in the public API and not their internal
ones).

So to make signing work at all, when editing a contract enforce the
limit to 34px (with a warning). Things might not look very nice anymore
but they should at least work.

Support case has been opened with Signwell to see if this was actually
intentional (the max size in the UI editor appears to be 74), and if so
if they are planning to align the UI with the API. This commit goes in
pending a possible change on their side and we can revert if if we end
up not needing it permanently.
postgresqleu/digisign/implementations/signwell.py