File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Sources/W3WSwiftComponentsOcr Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -518,14 +518,14 @@ open class W3WOcrViewController: W3WViewController {
518518 let height : CGFloat
519519 if UIScreen . main. bounds. width < UIScreen . main. bounds. height {
520520 // potrait
521- width = UIScreen . main . bounds. width - inset * 2.0
521+ width = view . bounds. width - inset * 2.0
522522 height = width
523523 } else {
524524 // landscape
525- width = UIScreen . main . bounds. width * 0.8 - inset * 2.0
525+ width = view . bounds. width * 0.8 - inset * 2.0
526526 height = width * W3WSettings. ocrViewfinderRatioLandscape
527527 }
528- let crop = CGRect ( origin: CGPoint ( x: ( UIScreen . main . bounds. width - width) / 2 ,
528+ let crop = CGRect ( origin: CGPoint ( x: ( view . bounds. width - width) / 2 ,
529529 y: topMargin + closeButtonSize + W3WMargin. light. value) ,
530530 size: CGSize ( width: width, height: height) )
531531 ocrView. set ( crop: crop)
You can’t perform that action at this time.
0 commit comments