瀏覽代碼

修改选择框不停变大的bug

huzhiqiang 3 年之前
父節點
當前提交
73194a2292
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      BFFramework/Classes/Stuckpoint/View/PQStuckPointCuttingView.swift

+ 1 - 1
BFFramework/Classes/Stuckpoint/View/PQStuckPointCuttingView.swift

@@ -205,7 +205,7 @@ class PQStuckPointCuttingView: UIView {
 
     func addData() {
         // 1,选择区内的线个数 ,划动区域后 个数会变???
-        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