瀏覽代碼

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

Melody 5 年之前
父節點
當前提交
530ceaf8ff
共有 1 個文件被更改,包括 1 次插入1 次删除
  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