|
@@ -16,8 +16,8 @@ class BFUISlider: UISlider {
|
|
|
valueLabel.sizeToFit()
|
|
|
|
|
|
let trackRect = convert(bounds, to: nil)
|
|
|
- let thumbRect = thumbRect(forBounds: bounds, trackRect: trackRect, value: value)
|
|
|
- valueLabel.center = CGPoint.init(x: (thumbRect.origin.x - trackRect.origin.x + thumbRect.size.width / 2), y: -self.frame.size.height)
|
|
|
+ let thumbRectTemp = thumbRect(forBounds: bounds, trackRect: trackRect, value: value)
|
|
|
+ valueLabel.center = CGPoint.init(x: (thumbRectTemp.origin.x - thumbRectTemp.origin.x + thumbRectTemp.size.width / 2), y: -self.frame.size.height)
|
|
|
|
|
|
// CGPointMake((thumbRect.origin.x - trackRect.origin.x + thumbRect.size.width / 2), -self.frame.size.height);
|
|
|
|