@capgo/camera-preview 7.4.0-beta.18 → 7.4.0-beta.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.
@@ -2748,10 +2748,9 @@ public class CameraXView implements LifecycleOwner, LifecycleObserver {
2748
2748
  finalY = Math.max(0, Math.min(finalY, availableHeight - finalHeight));
2749
2749
  } else {
2750
2750
  // Auto-center the view
2751
- // Calculate size based on aspect ratio, using a reasonable base size
2752
- // Use 80% of available space to ensure aspect ratio differences are visible
2753
- int maxAvailableWidth = (int) (availableWidth * 0.8);
2754
- int maxAvailableHeight = (int) (availableHeight * 0.8);
2751
+ // Use full available space to match iOS behavior
2752
+ int maxAvailableWidth = availableWidth;
2753
+ int maxAvailableHeight = availableHeight;
2755
2754
 
2756
2755
  // Start with width-based calculation
2757
2756
  finalWidth = maxAvailableWidth;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/camera-preview",
3
- "version": "7.4.0-beta.18",
3
+ "version": "7.4.0-beta.19",
4
4
  "description": "Camera preview",
5
5
  "license": "MIT",
6
6
  "repository": {