question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug with changing font-family/font-size

See original GitHub issue

If you are created styles for input, and change it on fly, your sizer not update styles, so, where are no correct autoresize on change font size or family or others…

this.sizer node has only the initial props and not updates on input props updated.

hack to temporary solve this problem in code: this.view.input.copyInputStyles(); this.view.input.updateInputWidth();

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
duongthienleecommented, Jul 11, 2019

How do I call copyInputStyles()? I’m using react hooks now, can’t use ref on AutosizeInput to call that function at all. I know I can set a key to trigger rerender, but how to call copyInputStyles () if I don’t want to use key.

1reaction
intelligencecommented, Jun 4, 2019

That’s great! How does one call a repaint? New to React – would be thankful for an example 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bug: [Playground] Changes to font-size or font-family cause ...
It seems that, in the Lexical Playground, changing font size and font family requires text to be selected. If no text is selected,...
Read more >
Strange Bug When Attempting to Change Font Size
Use Slide Master to change to set the default font size. a. Under the View menu, choose View> Master> Slide Master. b. In...
Read more >
Font Size Problems? Check Here First! - Codecademy
Go to your browser's settings and make sure in the font settings that your minimum font setting is set to 10px… if not...
Read more >
Cannot apply change of font size or style in newly created text
Bug Description​​ If you change the font itself or the alignment, the Apply button becomes available. If the text is deselected, and reselected, ......
Read more >
Bug with Gutenberg editor font size | WordPress.org
The last Oceanwp update (2.0.4) introduced a bug on the font size within the Gutenberg editor, which causes the font to become 180%...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found