rhok.view.createIssue = function() {
	var createButton = Ti.UI.createButton({ 
		systemButton : Ti.UI.iPhone.SystemButton.ADD,
		title : 'Add issue'
	});
	
	createButton.addEventListener('click', function() {
		rhok.controller.issueController.createIssue();
		view.close();
	});
	
	var cancelButton = Ti.UI.createButton({
		systemButton : Ti.UI.iPhone.SystemButton.CANCEL,
		title : 'Cancel'
	});
	
	cancelButton.addEventListener('click', function() {
		view.close();
	});
	
	var view = Titanium.UI.createWindow({
		backgroundColor : 'green'
	});
	view.add(createButton);
	view.add(cancelButton);
	return view;
}();


rhok.view.createIssue = function() {
	var createButton = Ti.UI.createButton({ 
		systemButton : Ti.UI.iPhone.SystemButton.ADD,
		left: 100,
		width : 80,
		height: 30,
		title : 'Add issue'
	});
	
	createButton.addEventListener('click', function() {
		rhok.controller.issueController.createIssue();
		view.close();
	});
	
	var cancelButton = Ti.UI.createButton({
		systemButton : Ti.UI.iPhone.SystemButton.CANCEL,
		left : 10,
		width : 80,
		height: 30,
		title : 'Cancel'
	});
	
	cancelButton.addEventListener('click', function() {
		view.close();
	});
	
	var view = Titanium.UI.createWindow({
		backgroundColor : 'green'
	});
	view.add(createButton);
	view.add(cancelButton);
	return view;
}();


Make sure buttons don't overlap
Make sure buttons don't overlap
