|
@@ -205,7 +205,7 @@ class PQStuckPointCuttingView: UIView {
|
|
|
|
|
|
func addData() {
|
|
|
|
|
|
- wavSelectCount = Int(ceil((cropViewWidth - frequencyWidth) / (frequencyWidth + frequencyMargin)) + 1)
|
|
|
+ wavSelectCount = Int(ceil((adapterWidth(width: 250) - frequencyWidth) / (frequencyWidth + frequencyMargin)) + 1)
|
|
|
|
|
|
cropViewWidth = CGFloat(wavSelectCount) * (frequencyWidth + frequencyMargin) + frequencyWidth
|
|
|
margin = (cScreenWidth - cropViewWidth) / 2.0
|