@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
|
-
//
|
|
2752
|
-
|
|
2753
|
-
int
|
|
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;
|