Description
Using may Annotation, when Annotation title text is large, Annotation leftButton and rightButton are not aligned properly. Button appears in the top portion
Reproduce:
1.Just simply run the test case below.
var Map = require('ti.map');
var win = Titanium.UI.createWindow();
var mountainView = Map.createAnnotation({
latitude : -33.852222,
longitude : 151.210556,
title : "Aadsafsfsdfsdfdsfdsfdsfdsfsfsdf",
subtitle : 'skjhfjskh',
pincolor : Map.ANNOTATION_AZURE,
myid : 1 // Custom property to uniquely identify this annotation.
});
mountainView.leftButton = "images.png";
mountainView.rightButton = Titanium.UI.iPhone.SystemButton.INFO_LIGHT;;
var mapview = Map.createView({
mapType : Map.NORMAL_TYPE,
region : {
latitude : -33.87365,
longitude : 151.20689,
latitudeDelta : 0.1,
longitudeDelta : 0.1
},
animate : true,
regionFit : true,
userLocation : true,
annotations : [mountainView]
});
win.add(mapview);
// Handle click events on any annotations on this map.
mapview.addEventListener('click', function(evt) {
Ti.API.info("Annotation " + evt.title + " clicked, id: " + evt.annotation.myid);
});
win.open();
Except Result:
The button should get aligned well.
Actual Result:
Annotation leftButton and rightButton are not aligned properly. Button appears in the top portion. Screenshot attached.
Can we try this with a native test case?
Native test case outcome is the *same* as described. Please find attached screenshot of native test case. Hence this is native behavior. *Note*: This only occurs on iPhone 4 and 5. it looks ok on iPhone 6 and 6 plus.
Closing this ticket as the issue is not our bug.