-
Notifications
You must be signed in to change notification settings - Fork 35
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
Enable fit option when the label is overflowing the rectangle #175
Conversation
} | ||
return true; | ||
} | ||
|
||
function getFontFromOptions(rect, labels) { | ||
const {font, hoverFont} = labels; | ||
const optFont = (rect.active ? hoverFont : font) || font; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I'm going in circles, but again was it so that the sub-objects (labels in this case) don't automatically resolve the hover options?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes @kurkle
There was also an issue that we closed with a patch. Hover font seems not solved. But tomorrow I want to understand better the current logic in chartjs and why is not applied here for font. Ok for you?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, but I'll merge this already anyway :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kurkle please, don't hate me if you can... when you have time, we should go ahead with PRs on the annotation, I think...
Could fix #67.
This PR is adding new possible value,
'fit'
, foroverflow
option.TODO