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
make sure that the device is in portrait or landscape orientation
start a camera with toBack set to false (or does not set it so that the default value is used) and paddingBottom param set in CameraPreviewOptions on iOS
Note that the padding is not applied
rotate the device
Note that the padding is not applied
Note that padding bottom is not applied and the preview takes the entire screen. This commit broke the padding after rotation - see af469a5
See my comment here af469a5#r50558659
Before it used to calculate height but after the change it uses the original height without bottom padding.
Expected behavior
The param must works as advertised in the plugin README
Screenshots
Desktop (please complete the following information):
OS: MacOS Big Sur 11.2.3
Smartphone (please complete the following information):
Device: IPhone 6S Plus
OS: iOS 14.5
Additional context
N/A
The text was updated successfully, but these errors were encountered:
ryaa
changed the title
paddingBottom param is not working under iOS
paddingBottom param is not working properly under iOS
May 9, 2021
Describe the bug
paddingBottom param is not working properly on iOS - see this param desc https://github.com/ryaa/camera-preview/tree/master#startoptions
To Reproduce
Steps to reproduce the behaviour:
Note that the padding is not applied
Note that the padding is not applied
Note that padding bottom is not applied and the preview takes the entire screen. This commit broke the padding after rotation - see af469a5
See my comment here af469a5#r50558659
Before it used to calculate height but after the change it uses the original height without bottom padding.
Expected behavior
The param must works as advertised in the plugin README
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
N/A
The text was updated successfully, but these errors were encountered: