-
Notifications
You must be signed in to change notification settings - Fork 420
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
JBLineChartView doesn't resize its subviews #111
Comments
I've been getting around this by calling reloadData after a frame change. See https://github.com/Jawbone/anscombe-quartet-ios for an example. I could simply call reloadData after JBChartView's frame is set:
Thoughts? |
Fixed in version 2.8.9 -- go ahead and give it a try. |
Seems good, but I don't think that reloading data when frame is updated is a good practice. It could be very time consuming, no ? |
reload data is fairly quick - it's just requesting data - no drawing taking place. The UI loop will re-draw all the subviews regardless if reloadData is called or not; meaning the largest toll on performance is going to occur regardless. |
I rolled this fix back as our own personal projects seem to call setFrame quite often during touch events. Rolled back via commit: efd8f97 For now, devs should just know to call reloadData after each frame change. I've added this to the documentation. |
Hi,
when resized, JBLineChartView doesn't resizes its subviews (such as JBLineChartDotsView and JBLineChartLinesView).
A fix will be to add
in their constructors.
I think once resized, JBLineChartView should redraw its content, perhaps by adding a KVO on its frame ?
Regards,
The text was updated successfully, but these errors were encountered: