Problem
Dynamic positioning of camera overlay objects does not work. We cannot relocate the components.
Reproducible Steps
1. Run the sample code with iOS device
2. Tap on the screen
Sample Code
var win = Titanium.UI.createWindow({
layout:'vertical',
backgroundColor:'#fff'
});
var redBox = Ti.UI.createView({
borderColor: 'red',
borderWidth: 1,
width: 100,
height: 100,
left:0,
top:0
});
win.open();
var overlayView = Ti.UI.createView({});
overlayView.add(redBox);
overlayView.addEventListener('click', function(e) {
Ti.API.info("Overlay click event received.");
redBox.left = 100;
redBox.top = 100;
});
Ti.Media.showCamera({
success: function(event) {
Ti.API.info("Camera success event received.");
},
error: function(error) {
Ti.API.info("Camera error event received.");
},
overlay: overlayView,
allowEditing: false,
mediaTypes : Ti.Media.MEDIA_TYPE_PHOTO,
showControls : false,
autohide : false,
animated: true
});
Associated HelpDesk Ticket
http://appc.me/c/APP-411144
Reassigning, due to Reggie's absence.
Tested with 1.9.0.v20120112153134 on iPod 4.3.3 tapping the first time does not move the red box
Test with newer build
Tested with 1.9.0.v20120113170134 with iPod 4.3.3