We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6595ca9 commit 8bde517Copy full SHA for 8bde517
1 file changed
CHIPageControl/CHIPageControlAji.swift
@@ -60,8 +60,8 @@ open class CHIPageControlAji: CHIBasePageControl {
60
super.layoutSubviews()
61
62
let floatCount = CGFloat(inactive.count)
63
- let x = (self.bounds.size.width - self.diameter*floatCount - self.padding*(floatCount-1))*0.5
64
- let y = (self.bounds.size.height - self.diameter)*0.5
+ let x = ceil((self.bounds.size.width - self.diameter*floatCount - self.padding*(floatCount-1))*0.5)
+ let y = ceil((self.bounds.size.height - self.diameter)*0.5)
65
var frame = CGRect(x: x, y: y, width: self.diameter, height: self.diameter)
66
67
active.cornerRadius = self.radius
0 commit comments