Explorar el Código

fix: 修复【炫声】排版位置有偏差问题。 之前设置为 view.bounds, 是因为全屏播放的,而现在编辑页DisplayView 大小变了,用于适配的bounds大小也需要改变

Melody hace 5 años
padre
commit
530ceaf8ff
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      SuperShow/UI/CoolVoice/WSSCoolVoiceSubtitleController.swift

+ 1 - 1
SuperShow/UI/CoolVoice/WSSCoolVoiceSubtitleController.swift

@@ -1123,7 +1123,7 @@ fileprivate extension WSSCoolVoiceSubtitleController {
     }
 
     func createTextPasterInput() {
-        let rect = AVMakeRect(aspectRatio: videoSize, insideRect: view.bounds)
+        let rect = AVMakeRect(aspectRatio: videoSize, insideRect: pasterOverlayView.bounds)
         let placeholer: UIView = UIView(frame: rect)
 
         /// 初始化文字Text