Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular, when setting the height (or font-size) to input[type="text"], the position of text in the output image is not draw correctly #3219

Open
2 tasks done
tai-nv opened this issue Dec 2, 2024 · 0 comments

Comments

@tai-nv
Copy link

tai-nv commented Dec 2, 2024

Please follow the general troubleshooting steps first:

  • You are using the latest version
  • You are testing using the non-minified version of html2canvas and checked any potential issues reported in the console

Bug reports:

html
image
typescript
image

The result:
image

The position of the text in the input is currently vertically centered.
However, the position of the text in the output image remains the same as it was before setting the height (or font-size) for the input element.

Specifications:

  • html2canvas version tested with:
  • Browser & version: Chrome 131.0.6778.86(Official Build) (64 bit)
  • Operating system: Windows 10 Pro 64bit (v19045)
@tai-nv tai-nv changed the title Angular, when setting the height to input[type="text"], the position of text in the output image is not draw correctly Angular, when setting the height (or font-size) to input[type="text"], the position of text in the output image is not draw correctly Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant