[TIMOB-4449] Mapview Region ignored when mapview placed in tabgroup
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-11-18T10:30:27.000+0000 |
Affected Version/s | Release 1.7.0, Release 1.8.0 |
Fix Version/s | Sprint 2011-29, Release 1.8.0 |
Components | iOS |
Labels | module_map, qe-testadded, regression |
Reporter | Alan Leard |
Assignee | Sabil Rahim |
Created | 2011-06-16T14:29:28.000+0000 |
Updated | 2011-11-18T10:30:27.000+0000 |
Description
A mapview placed on a tab in a tabgroup ignores region. Here is simple testing code:
var tabGroup = Titanium.UI.createTabGroup();
var win2 = Titanium.UI.createWindow({
title:'Map',
navBarHidden:true
});
var tab2 = Titanium.UI.createTab({
icon:'KS_nav_ui.png',
title:'Map',
window:win2
});
var mapview = Titanium.Map.createView({
mapType: Titanium.Map.STANDARD_TYPE,
regionFit:true,
region:{latitude:40.581691,longitude:-122.3916,latitudeDelta:2, longitudeDelta:2}
});
win2.add(mapview);
tabGroup.addTab(tab2);
tabGroup.open();
Place the mapview directly in a window (no tab), and region will work. Also, running on 1.6.2 works fine.
Attachments
File | Date | Size |
---|---|---|
app.js | 2011-06-17T11:33:42.000+0000 | 732 |
test app. tab 1 opens with region focused near Redding, CA
Modified to an iOS Bug.
fixed. pending pull request.
Closing. Fix verified on iPad 2 4.3.5, iPhone 4 4.2.10, iPod 3rd generation 4.0.2.
Fail: Tested with 1.8.0.1.v20111116185058 on iPad 2 4.3.5 iPod Touch 4.02 iPhone 4s 5.0 Does not zoom into the region
Reference TIMOB-6232 for zoom issue