Skip to content

Commit

Permalink
styling update
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaobin Chen committed Oct 14, 2015
1 parent f704abb commit aa39627
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Charts/Classes/Charts/BarLineChartViewBase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -982,11 +982,12 @@ public class BarLineChartViewBase: ChartViewBase, UIGestureRecognizerDelegate
scrollView = scrollView?.superview
}

//address UITableViewWrepperView bug,
//if there is two scrollview together, we pick the outer one
let scrollViewSuper = scrollView?.superview
if scrollViewSuper!.isKindOfClass(UIScrollView) {
scrollView = scrollViewSuper
// If there is two scrollview together, we pick the superview of the inner scrollview.
// In the case of UITableViewWrepperView, the superview will be UITableView
let superViewOfScrollView = scrollView?.superview
if (superViewOfScrollView!.isKindOfClass(UIScrollView))
{
scrollView = superViewOfScrollView
}

var foundScrollView = scrollView as? UIScrollView
Expand Down

0 comments on commit aa39627

Please sign in to comment.