Project: titanium
Issue TIMOB-17627: iOS: Fix fullscreen transform for Camera
h4. Problem Description A black stripe on the bottom when using showCamera with a parameter of scale 1 and overlay rotating 90 degree. The code will show a black Stripe on the Bottom of the Screen and the app is in Landscape mode. Use a 2d matrix to transform the live view of the camera by scaling it 1 to 1.x or whatever scale you want to fill the screen. for me the camera previews full screen at scale 1.75. h4. Steps to reproduce 1. Create new mobile project (classic titanium) 2. Copy this code into app.js {code} var container ={}; var overlayTransform = Ti.UI.create2DMatrix().rotate(90); container.overlay = Titanium.UI.createView({transform:overlayTransform} ); var cameraTransform = Ti.UI.create2DMatrix(); cameraTransform = cameraTransform.scale(1); Titanium.Media.showCamera( { success:function(event) { }, cancel:function() { }, error:function(error) { }, autohide:false, overlay:container.overlay, showControls:false, transform:cameraTransform, }); {code} 3. Run it in device.
Story points: 13