Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5928] iOS: Dynamic positioning of camera overlay objects not working

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2012-01-23T16:39:07.000+0000
Affected Version/sRelease 1.7.3, Release 1.7.4, Release 1.8.0, Release 1.8.0.1
Fix Version/sSprint 2012-01, Release 2.0.0, Release 1.8.1
ComponentsiOS
Labelsdr-list, parity
ReporterKarol Pomaski
AssigneeMax Stepanov
Created2011-10-31T10:46:49.000+0000
Updated2012-03-04T22:14:00.000+0000

Description

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

Comments

  1. Paul Dowsett 2011-12-02

    Reassigning, due to Reggie's absence.
  2. Natalie Huynh 2012-01-13

    Tested with 1.9.0.v20120112153134 on iPod 4.3.3 tapping the first time does not move the red box
  3. Natalie Huynh 2012-01-13

    Test with newer build
  4. Natalie Huynh 2012-01-13

    Tested with 1.9.0.v20120113170134 with iPod 4.3.3

JSON Source