Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Issue 198 (re)performance fix#208

Merged
Marc-Andre-Rivet merged 3 commits intomasterfrom
3.1-issue198-performance-2
Nov 2, 2018
Merged

Issue 198 (re)performance fix#208
Marc-Andre-Rivet merged 3 commits intomasterfrom
3.1-issue198-performance-2

Conversation

@Marc-Andre-Rivet
Copy link
Copy Markdown
Contributor

@Marc-Andre-Rivet Marc-Andre-Rivet commented Nov 2, 2018

Performance was still an issue after #200. This is an extra fix for #198.

Turns out that Chrome assigns the follow style to the table through the user agent stylesheet

table {
...
font-size: medium;
...
}

Having a font-size that is not pixel based is wrecking havoc in the AutoInputResize component -- which is a component we are using indirectly through react-select (dropdown)

https://github.com/JedWatson/react-input-autosize/blob/05b0f86a7f8b16de99c2b31296ff0d3307f15957/src/AutosizeInput.js#L58

@chriddyp chriddyp requested a deployment to dash-table-review-pr-208 November 2, 2018 16:46 Abandoned
Copy link
Copy Markdown
Contributor

@valentijnnieman valentijnnieman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weird issue, but looks like a good fix to me! 👍 Nice that you added a link to the AutosizeInput code.

@Marc-Andre-Rivet Marc-Andre-Rivet merged commit d04387b into master Nov 2, 2018
@Marc-Andre-Rivet Marc-Andre-Rivet deleted the 3.1-issue198-performance-2 branch July 18, 2019 12:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants