Skip to content

How to change the position of an inserted picture? #60

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

Closed
TomatoesMan opened this issue Jan 5, 2021 · 2 comments
Closed

How to change the position of an inserted picture? #60

TomatoesMan opened this issue Jan 5, 2021 · 2 comments
Labels
kind: question kind: support Asking for support with something or a specific use case problem: stale Issue author has not responded scope: upstream Issue in upstream dependency

Comments

@TomatoesMan
Copy link

TomatoesMan commented Jan 5, 2021

How to change the position of the inserted picture?

@TomatoesMan TomatoesMan changed the title How to add pictures? How to change the position of the inserted picture? Jan 5, 2021
@agilgur5 agilgur5 changed the title How to change the position of the inserted picture? How to change the position of an inserted picture? Feb 5, 2022
@agilgur5
Copy link
Owner

agilgur5 commented Feb 5, 2022

background picture? Try CSS background-image

I'm not sure what is meant by "inserted picture"? Pictures/photos aren't meant to be used with this component. If you are trying to use a picture as a background for the signature, I might suggest using the CSS background-image property instead.

fromDataURL? Upstream limitation

Did you mean a data URL inserted by fromDataURL? If so, there is unfortunately no way to add an offset to the dataURL due to an upstream limitation in signature_pad. On this line upstream, the offsets are hard-coded to 0 unfortunately.

That being said, szimek/signature_pad#538 added support for offsets and was recently released with v4.0.0. So once we upgrade to v4.0.0, it will be possible to add offsets to fromDataURL's options parameter, if that's what you were looking for.

@agilgur5 agilgur5 added kind: question kind: support Asking for support with something or a specific use case scope: upstream Issue in upstream dependency labels Feb 5, 2022
@agilgur5 agilgur5 added the problem: stale Issue author has not responded label Feb 18, 2022
@agilgur5
Copy link
Owner

agilgur5 commented Apr 4, 2022

Closing as stale

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: question kind: support Asking for support with something or a specific use case problem: stale Issue author has not responded scope: upstream Issue in upstream dependency
Projects
None yet
2 participants