Skip to content

Commit

Permalink
Merge pull request #3587 from shiwangwang/fix-barheight
Browse files Browse the repository at this point in the history
update barRect.size.height calculation
  • Loading branch information
pmairoldi authored Jul 29, 2018
2 parents 88895d0 + 881b72e commit 5a5121d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Charts/Renderers/BarChartRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ open class BarChartRenderer: BarLineScatterCandleBubbleRenderer
barRect.origin.x = left
barRect.size.width = right - left
barRect.origin.y = top
barRect.size.height = bottom - top + offset
barRect.size.height = bottom == top ? 0 : bottom - top + offset

buffer.rects[bufferIndex] = barRect
bufferIndex += 1
Expand Down

0 comments on commit 5a5121d

Please sign in to comment.