@capgo/camera-preview 7.4.0-alpha.18 → 7.4.0-alpha.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1527,6 +1527,8 @@ public class CameraPreview: CAPPlugin, CAPBridgedPlugin, CLLocationManagerDelega
|
|
|
1527
1527
|
finalY = (screenHeight - finalHeight) / 2
|
|
1528
1528
|
print("[CameraPreview] Centering vertically: screenHeight=\(screenHeight), finalHeight=\(finalHeight), finalY=\(finalY)")
|
|
1529
1529
|
} else {
|
|
1530
|
+
// In landscape, center both horizontally and vertically
|
|
1531
|
+
finalY = (screenHeight - finalHeight) / 2
|
|
1530
1532
|
finalX = (screenWidth - finalWidth) / 2
|
|
1531
1533
|
}
|
|
1532
1534
|
}
|