You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In MAUI version there are some issues with properly displaying CameraView.
To Reproduce
Steps to reproduce the behavior:
Open MAUI Sample App
Open MVVM Demo page
See that CameraView is overlapping over controls
Expected behavior CameraView should be displayed correctly in specified sizes, and Preview should fill available space, and crop what's out of the bounds. See Xamarin Forms screenshot
Screenshots
MAUI
Xamarin Forms
Smartphone (please complete the following information):
Device: Google Pixel
OS: Android
Version Maui v8.0.0 (may be on previous too, haven't tested)
Additional context
I was trying to find what causes it and created PR to use the new ResolutionSelector, but it didn't fix the issue.
If set _previewView.SetScaleType(PreviewView.ScaleType.FitCenter) in CreatePlatformView - it affects this behavior, but it is not a fix, because it starts to fit the preview instead of filling
Known workarounds
Wrap CameraView into Frame and set ClipToBounds = true , but other issues appear like black camera view after the first scan.
The text was updated successfully, but these errors were encountered:
Describe the bug
In MAUI version there are some issues with properly displaying
CameraView
.To Reproduce
Steps to reproduce the behavior:
CameraView
is overlapping over controlsExpected behavior
CameraView
should be displayed correctly in specified sizes, andPreview
should fill available space, and crop what's out of the bounds. See Xamarin Forms screenshotScreenshots
MAUI
Xamarin Forms
Smartphone (please complete the following information):
Additional context
I was trying to find what causes it and created PR to use the new ResolutionSelector, but it didn't fix the issue.
If set
_previewView.SetScaleType(PreviewView.ScaleType.FitCenter)
inCreatePlatformView
- it affects this behavior, but it is not a fix, because it starts to fit the preview instead of fillingKnown workarounds
Wrap CameraView into
Frame
and setClipToBounds = true
, but other issues appear like black camera view after the first scan.The text was updated successfully, but these errors were encountered: