Sfoglia il codice sorgente

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

Melody 5 anni fa
parent
commit
530ceaf8ff

+ 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