Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8045] IOS: SIZE views do not work well with left,right,top,bottom pins set

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-04-04T14:18:14.000+0000
Affected Version/sRelease 2.0.0
Fix Version/sRelease 2.0.0, Sprint 2012-06
ComponentsiOS
Labelsmodule_view, qe-testadded
ReporterVishal Duggal
AssigneeVishal Duggal
Created2012-03-15T14:22:39.000+0000
Updated2012-04-04T14:36:48.000+0000

Description

Test case below. Only top is set but views shows up as though top and bottom were set.
var win = Ti.UI.createWindow({backgroundColor:'white'});

var parent = Ti.UI.createView({
  height: Ti.UI.SIZE,
  top: 10,
  backgroundColor: 'green'
});

var child = Ti.UI.createView({
  backgroundColor: 'blue'
});

parent.add(child);
win.add(parent);

win.open();

Comments

  1. Wilson Luu 2012-03-19

    Closing bug. Verified fix on: SDK build: 2.0.0.v20120319003254 Titanium Studio, build: 2.0.0.201203182248 xcode: 4.2 Device: iphone 4s Verizon (5.0.1)
  2. Michael Pettiford 2012-04-04

    Reopening/closing to add/remove labels

JSON Source