Project: titanium
Issue TIMOB-18776: iOS: Map Annotation buttons are not aligned properly when Annotation title text is large
h6.Description Using may Annotation, when Annotation title text is large, Annotation leftButton and rightButton are not aligned properly. Button appears in the top portion h6.Reproduce: 1.Just simply run the test case below. {code:title=app.js} 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(); {code} h6.Except Result: The button should get aligned well. h6.Actual Result: Annotation leftButton and rightButton are not aligned properly. Button appears in the top portion. Screenshot attached.
Story points: 5