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

Bug : inconsistent behavior when using paddingTop #25

Closed
Makio64 opened this issue Jun 9, 2020 · 1 comment
Closed

Bug : inconsistent behavior when using paddingTop #25

Makio64 opened this issue Jun 9, 2020 · 1 comment

Comments

@Makio64
Copy link

Makio64 commented Jun 9, 2020

when using some combinaison the focus position of the text is different than the blur position

for example with

			input: {
				lineHeight: '40px',
				fontSize: '14px',
				padding: '16px',
				paddingTop: '18px',
				paddingLeft: '14px',
				paddingBottom: '8px',
				width: '200px',
				color: '#5b1289',
			},

@Makio64 Makio64 changed the title inconsistent behavior when using paddingTop Bug : inconsistent behavior when using paddingTop Jun 9, 2020
@Mwni
Copy link
Owner

Mwni commented Jun 9, 2020

Sadly there's no way to tell the exact font height and baseline position, which is why the blur position is different for some fonts on some configs. If that's a problem, set substituteText to false.

@Mwni Mwni closed this as completed Jun 9, 2020
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

2 participants