When rendering the Web Payments SDK in a hidden element the payment form comes out at approx double height.
Any suggestions on correcting this?
Screen shot of simple example rendered in a hidden element (display:none).
When rendering the Web Payments SDK in a hidden element the payment form comes out at approx double height.
Any suggestions on correcting this?
Screen shot of simple example rendered in a hidden element (display:none).
Hey!
You can use card.recalculateSize
to fix this issue:
Thanks that works nicely
I am using angular 15, recalculateSize is not working. I am using angular detectChanges function also.