Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9172] Android: Map View spills past the bottom of the screen (on vertical layout window)

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-07-11T04:52:58.000+0000
Affected Version/sRelease 2.0.1
Fix Version/sRelease 2.1.0, Sprint 2012-12 Core
ComponentsAndroid
LabelsSupportTeam, core, module_map, qe-testadded
ReporterShawn Lipscomb
AssigneeAllen Yeung
Created2012-05-18T08:21:10.000+0000
Updated2012-07-11T14:06:36.000+0000

Description

Problem

When a Map View is added to a vertical-layout window after other controls, the map view extends past the bottom of the screen.

Testcase

Add the following code to a new project and run it. You will see that the bottom of the map, where the word "Google" is, is too low and the "Google" is cut in half. app.js:
var win1 = Ti.UI.createWindow({  
  backgroundColor:'#fff',
  exitOnClose:true,
  navBarHidden:true,
  layout:'vertical'
});

var label1 = Ti.UI.createLabel({
  color:'#999',
  text:'I am Window Header',
  font:{fontSize:20,fontFamily:'Helvetica Neue'},
  textAlign:'center',
  width:Ti.UI.SIZE,
  top:1
});
win1.add(label1);

var map1=Ti.Map.createView({
              mapType:Ti.Map.STANDARD_TYPE,
              animate:true,
              regionFit:true,
              userLocation:true
            });
win1.add(map1);
win1.open();

Comments

  1. Shawn Lipscomb 2012-05-18

  2. Shawn Lipscomb 2012-05-18

    HD ticket: [http://support.appcelerator.com/tickets/APP-222456/]
  3. Vishal Duggal 2012-05-31

    Layout issue assigning to core
  4. Allen Yeung 2012-06-06

    This behavior has been fixed since 2.0.2.GA build. Please try again with the latest version of the sdk.
  5. Shawn Lipscomb 2012-06-07

    Verified fix on SDK 2.1.0.v20120520110234. Thanks!
  6. Michael Pettiford 2012-06-18

    Closing issue Tested with Ti Studio build 2.1.0.201206172244 Ti Mobile SDK2.1.0.v20120618134156 hash r00905cd0 OSX Lion 10.7.3 Nexus S OS 4.0.4 The expected behavior is shown
  7. Shyam Bhadauria 2012-07-11

    Re-opening to edit label

JSON Source