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

Set font size with css calc #27

Open
lastmjs opened this issue Jul 8, 2017 · 1 comment
Open

Set font size with css calc #27

lastmjs opened this issue Jul 8, 2017 · 1 comment

Comments

@lastmjs
Copy link

lastmjs commented Jul 8, 2017

This component is just great! Right now the font size can only be set through the fontsize attribute. But that attribute only takes a static value, as in it can't take something like CSS calc. I need to use that to make the text size responsive like I desire, and right now I'm hacking through shadowRoots in JavaScript to set it.

@warpech
Copy link
Contributor

warpech commented Oct 3, 2017

Seems that this could work if we change from using setFontSize method to use fontSize option of a Ace renderer.

See:

I am not sure why does Ace editor have this configuration in two places.

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