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

fix scaleBand equality (updated) #481

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open

Conversation

RavyuS
Copy link

@RavyuS RavyuS commented Jun 19, 2020

Original pull request here.

Added this. prefixes for the times the isScaleBand() function is called within the class/object itself.

Also reflected this fix in src/x-axis.js, which is the only other module that needs the scaleBand equality checks in it.

Full credit to @usrbowe! I am only submitting this pull request because he appears to be inactive and I think it is a very useful fix!

Comment on lines -91 to +95
<Text
style={{
opacity: 0,
fontSize: svg.fontSize,
fontFamily: svg.fontFamily,
fontWeight: svg.fontWeight,
}}
>
{longestValue}
</Text>
<Text style={{ opacity: 0, fontSize: svg.fontSize }}>{longestValue}</Text>
Copy link
Owner

Choose a reason for hiding this comment

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

Why were these changed? I'm pretty sure fontFamily and fontWeight affects the size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants