Bug with changing font-family/font-size
See original GitHub issueIf 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:
- Created 6 years ago
- Comments:6 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
That’s great! How does one call a repaint? New to React – would be thankful for an example 😃