mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
Fixed breaking change in camera for android.
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
export function getAspectSafeDimensions(sourceWidth, sourceHeight, reqWidth, reqHeight) {
|
||||
var widthCoef = sourceWidth / reqWidth;
|
||||
var heightCoef = sourceHeight / reqHeight;
|
||||
let widthCoef = sourceWidth / reqWidth;
|
||||
let heightCoef = sourceHeight / reqHeight;
|
||||
|
||||
var aspectCoef = widthCoef > heightCoef ? widthCoef : heightCoef;
|
||||
let aspectCoef = widthCoef > heightCoef ? widthCoef : heightCoef;
|
||||
|
||||
return {
|
||||
width: Math.floor(sourceWidth / aspectCoef),
|
||||
|
Reference in New Issue
Block a user