Skip to content

Commit

Permalink
Merge pull request #175 from willdale/revert-167-xAxisLabelHeightFix
Browse files Browse the repository at this point in the history
Revert "XAxis Label Height distortion fix"
  • Loading branch information
willdale authored Mar 16, 2022
2 parents e8c3dca + eafa102 commit 7b50b53
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,10 @@ internal struct RotatedText<ChartData>: View where ChartData: CTLineBarChartData
Color.clear
.onAppear {
finalFrame = geo.frame(in: .local)
chartData.viewData.xAxisLabelHeights.append(geo.frame(in: .local).width)
if rotation == .degrees(0) || rotation == .radians(0) {
chartData.viewData.xAxisLabelHeights.append(geo.frame(in: .local).height)
chartData.viewData.xAxislabelWidths.append(geo.frame(in: .local).width)
} else {
chartData.viewData.xAxisLabelHeights.append(geo.frame(in: .local).width)
chartData.viewData.xAxislabelWidths.append(geo.frame(in: .local).height)
}
}
Expand Down

0 comments on commit 7b50b53

Please sign in to comment.