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

Run view port jobs afterwards (Fixes #2395) #2396

Merged
merged 1 commit into from
May 1, 2017
Merged

Run view port jobs afterwards (Fixes #2395) #2396

merged 1 commit into from
May 1, 2017

Conversation

feosuna1
Copy link
Contributor

notifyDataSetChanged() may actually mutate some of the view port properties — stomping all over what the view port jobs just accomplished.

This behavior is apparent when calling moveViewToX() on the chart view that has no frame yet. Prior to this change, calling moveViewToX() had no affect on a chart a chart that has no frame. That's because once the chart view was assigned a frame, notifyDataSetChanged() call would actually mutate the view port's properties stomping all over what the view port jobs just finished doing.

`notifyDataSetChanged()` may actually mutate some of the view port properties — stomping all over what the view port jobs just accomplished.

This behavior is apparent when calling `moveViewToX()` on the chart view that has no frame yet. Prior to this change, calling `moveViewToX()` had no affect on a chart a chart that has no frame. That's because once the chart view was assigned a frame, `notifyDataSetChanged()` call would actually mutate the view port's properties stomping all over what the view port jobs just finished doing.
@codecov-io
Copy link

codecov-io commented Apr 26, 2017

Codecov Report

Merging #2396 into master will decrease coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2396      +/-   ##
==========================================
- Coverage   19.66%   19.65%   -0.01%     
==========================================
  Files         112      112              
  Lines       13712    13714       +2     
==========================================
  Hits         2696     2696              
- Misses      11016    11018       +2
Impacted Files Coverage Δ
Source/Charts/Charts/ChartViewBase.swift 24.23% <0%> (-0.11%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5288c25...b03f555. Read the comment docs.

@danielgindi danielgindi merged commit 3ab1ebd into ChartsOrg:master May 1, 2017
PeterSrost pushed a commit to sokol8/Charts that referenced this pull request Oct 31, 2018
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.

None yet

3 participants