Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Issue 198 (re)performance fix #208

Merged
merged 3 commits into from
Nov 2, 2018
Merged

Conversation

Marc-Andre-Rivet
Copy link
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
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