Description
When adding a view containing other views to a Map annotation by setting the leftView or rightView properties, the child views do not show up.
Code to reproduce
var win = Ti.UI.createWindow();
var left = Ti.UI.createView({
backgroundColor: 'pink',
height: 32,
width: 200,
layout: 'horizontal'
})
var button = Ti.UI.createButton({
height: 30,
width: Ti.UI.SIZE,
title: 'Button 1'
});
left.add(button);
var pin = Titanium.Map.createAnnotation({
latitude:37.390749,
longitude:-122.081651,
title:"Appcelerator Headquarters",
subtitle:'Mountain View, CA',
pincolor:Titanium.Map.ANNOTATION_RED,
animate:true,
leftView: left
});
var mapview = Titanium.Map.createView({
mapType: Titanium.Map.STANDARD_TYPE,
animate:true,
regionFit:true,
userLocation: false,
annotations: [pin]
});
win.add(mapview);
win.open();
To reproduce just click on the map annotation. The button is not displayed.
Cannot Reproduce on latest Master (3.1.0) buildHash : 2e0102b72cf70c6f8c79a88709a2fe172b2d973f
The issue is reproducible with 3.0.0.GA but its working fine with below mentioned build. Environment used for verification - Titanium SDK: 3.1.0.v20130313215655 Titanium Studio:3.0.2.201302151605 Device: iPad Mini iOS 6.0