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

assigning a NaN to a width attr causes the slider to have an incorrect width on a re-render. #1368

Merged
merged 1 commit into from
Aug 14, 2015

Conversation

lionkeng
Copy link
Contributor

@lionkeng lionkeng commented Aug 8, 2015

Should styles.percentZeroRemaining.width be computed and provided a value at all?

@lionkeng
Copy link
Contributor Author

@hai-cea, yes, from what I can tell, it is not needed. The style in percentZeroRemaining is used to ensure a correct left margin is rendered for the slider's bar when the percent remaining is 0. It doesn't need to have information for the width of the slider.

hai-cea pushed a commit that referenced this pull request Aug 14, 2015
assigning a NaN to a width attr causes the slider to have an incorrect width on a re-render.
@hai-cea hai-cea merged commit ade39f4 into mui:master Aug 14, 2015
@hai-cea
Copy link
Member

hai-cea commented Aug 14, 2015

Thanks @lionkeng

@zannager zannager added the component: slider This is the name of the generic UI component, not the React module! label Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: slider This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants