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

Issue in left side edge nodes #43

Open
AlmahaAlmalki opened this issue Feb 8, 2018 · 14 comments
Open

Issue in left side edge nodes #43

AlmahaAlmalki opened this issue Feb 8, 2018 · 14 comments
Assignees
Labels

Comments

@AlmahaAlmalki
Copy link
Contributor

Hi @alisaono

All the node on the left edge their labels are cut off and also the tooltip is not working. Is there a way to add padding? Or any temporary solution?

screenshot 2018-02-08 18 36 43

@alisaono
Copy link
Member

alisaono commented Feb 9, 2018

Is the tooltip not showing at all? (It seems to be working on the website example, which should be using the latest versions) Is it giving you any errors/warning related to the network/tooltip?

Also maybe we should add a new prop to specify paddings (or margins, whatever you wanna call it)? @sanjaypojo @AlmahaAlmalki

@AlmahaAlmalki
Copy link
Contributor Author

AlmahaAlmalki commented Feb 9, 2018 via email

@alisaono
Copy link
Member

alisaono commented Feb 9, 2018

Ah okay, so adding a prop for paddings should fix the problem?

@AlmahaAlmalki
Copy link
Contributor Author

AlmahaAlmalki commented Feb 9, 2018 via email

@sanjaypojo
Copy link
Member

Maybe we don't even need a new prop for padding. Can we just have the bounding box for the nodes to be a couple of pixels inside the width / height? Do you think that'll do the trick @alisaono?

@alisaono
Copy link
Member

alisaono commented Feb 9, 2018

@sanjaypojo I guess my only concern with that was we don't know how long the labels can be. E.g. if we have constant paddings and someone had a long label that always gets cut off, there'd be no way to quickly fix that. So maybe it's more user friendly if we have a padding prop with some default value? What do you think?

@alisaono
Copy link
Member

alisaono commented Feb 9, 2018

^Well this is sort of similar to the x labels offset issue we had with the bar chart. If we are to have constant paddings for now, we should revisit later to calculate the padding in a smarter way...!

@sanjaypojo
Copy link
Member

Oh wait, I think I just understood the problem. Correct me if I'm wrong - the labels are getting cut off whenever they are outside the bounds of the chart? And independently, the tooltip isn't working?

@alisaono
Copy link
Member

alisaono commented Feb 9, 2018

Yea the labels are outside the bounds of chart. Tooltip issue might be related if tooltips also don't display when it's outside the bounds of chart

@sanjaypojo
Copy link
Member

Cool, makes sense! For the labels, let's solve it a different way - let's change the label position to start / end from middle, in case the node's final position is close to the edge of the chart. I think that shouldn't be too complicated and worth a shot! For the tooltip, I'm hoping a small amount of padding might solve it?

@alisaono
Copy link
Member

alisaono commented Feb 9, 2018

Well actually tooltip issue may be independent from the bound issue.

screen shot 2018-02-09 at 12 50 52 am

Tooltip shows up fine although the node is at the very edge. You can see the label cut off

@sanjaypojo

@sanjaypojo
Copy link
Member

Ah okay perfect. In that case, let's just solve the label problem for this issue. For the tooltip, we need to figure out the exact CSS / external conditions that seems to cause the offset and then mention it in our docs.

@AlmahaAlmalki
Copy link
Contributor Author

AlmahaAlmalki commented Feb 9, 2018 via email

@alisaono
Copy link
Member

I wasn't able to reproduce this :/ Tooltip shows up for me even when it's on the left side edge. We can debug during the next in-person meeting, if you're still having this issue? @AlmahaAlmalki

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

No branches or pull requests

3 participants