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

VictoryBrushContainer should not show "rezise-cursor" when allowResize is false #1095

Closed
johnhydroware opened this issue Aug 20, 2018 · 10 comments
Labels
Note: Good first issue 🤩 Good issue for new contributors Type: Bug 🐛 Oh no! A bug or unintentional behavior

Comments

@johnhydroware
Copy link

The Problem

When "VictoryBrushContainer" and setting "allowResize" to "false" the cursor still changes to a double-arrow-cursor in the edges of the brush. It should only show the "hand" since moving the brush is the only available action for the user.

@boygirl
Copy link
Contributor

boygirl commented Aug 21, 2018

Good catch, thank you!

@boygirl boygirl added Type: Bug 🐛 Oh no! A bug or unintentional behavior Note: Good first issue 🤩 Good issue for new contributors labels Aug 21, 2018
@erick2014
Copy link
Contributor

Hello, I want to try to solve this

@boygirl
Copy link
Contributor

boygirl commented Sep 15, 2018

@erick2014 thanks! Please let me know if you have any questions about how to get started :)

@erick2014
Copy link
Contributor

Sure, thanks a lot

@erick2014
Copy link
Contributor

erick2014 commented Sep 15, 2018

hey @boygirl is there any way to reproduce this issue? I'm new in this and I have no idea what does the VictoryBrushContainer means

@narinluangrath
Copy link
Contributor

Hi @erick2014, here's a demo of the VictoryBrushContainer: https://formidable.com/open-source/victory/docs/victory-brush-container/

The BrushContainer adds a highlighted region to the chart on the bottom. The allowResize prop controls whether or not it can be resized. Ideally, when the user hovers over the edge of the highlighted region and allowResize is set to false, the cursor shouldn't switch to the "resize" symbol since the user isn't allow to resize it.

@erick2014
Copy link
Contributor

owww, thankyou so much @narinluangrath

@erick2014
Copy link
Contributor

erick2014 commented Sep 22, 2018

@johnhydroware would be helpful if you u share some code and pictures for better understanding

@erick2014
Copy link
Contributor

erick2014 commented Sep 23, 2018

@boygirl I sent a pr for this issue https://github.com/FormidableLabs/victory/pull/1124/files, hope this helps

@erick2014
Copy link
Contributor

@boygirl you can close this issue now

@boygirl boygirl closed this as completed Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Note: Good first issue 🤩 Good issue for new contributors Type: Bug 🐛 Oh no! A bug or unintentional behavior
Projects
None yet
Development

No branches or pull requests

4 participants