Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7490] iOS : View/Window - When using the vertical layout property on views that are added to windows, certain content of the view is not shown

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-03-14T10:45:55.000+0000
Affected Version/sRelease 1.8.1
Fix Version/sRelease 2.0.0, Sprint 2012-06
ComponentsiOS
Labelsmodule_window, parity, qe-testadded
ReporterMichael Pettiford
AssigneeVishal Duggal
Created2012-01-31T15:48:17.000+0000
Updated2012-03-15T15:28:01.000+0000

Description

*Note this behavior was found when verifying a similar bug on Android TIMOB-5808* Steps to reproduce: 1. Create a new titanium mobile project 2. Drop the code below into your app.js
var uiWindow = Ti.UI.createWindow({
    navBarHidden: true
});
 
var uiViewBackground = Ti.UI.createView({
    layout: 'vertical',
    backgroundColor: '#FFFFFF'
});
 
var uiViewArticle = Ti.UI.createView({
    layout: 'vertical',
    backgroundColor: '#aabbcc'
});
 

var uiLabelRed = Ti.UI.createLabel({
    text: 'I´m the RED bar (10dp top)!',
    backgroundColor: '#AA0000',
    width: '100%',
    height: 'auto',
    top: '10dp'
});
 

var uiLabelGreen = Ti.UI.createLabel({
    text: 'I´m the GREEN bar (10dp top)!',
    backgroundColor: '#00AA00',
    width: '100%',
    height: 'auto',
    top: '10dp'
});
 

var uiLabelBlue = Ti.UI.createLabel({
    text: 'I´m the BLUE bar (10dp top)!',
    backgroundColor: '#0000AA',
    width: '100%',
    top: '10dp'
});
 
// add all 3 labels with 10dp (7 pixel) top
uiViewArticle.add(uiLabelRed);
uiViewArticle.add(uiLabelGreen);
uiViewArticle.add(uiLabelBlue);
 
uiViewBackground.add(uiViewArticle);
 
uiWindow.add(uiViewBackground);
 
uiWindow.open();
3. Run app Actual result: The third label "uiLabelBlue" is not shown in the uiViewArticle view *Note see attached screen shot* Expected result: All three labels are added to the view and displayed correctly

Attachments

FileDateSize
screencap.PNG2012-01-31T15:48:17.000+000040625

Comments

  1. Wilson Luu 2012-03-15

    Closing bug. Verified fix on: SDK build: 2.0.0.v20120315140247 Titanium Studio, build: 2.0.0.201203142055 xcode: 4.2 Device: iphone 4s (5.0.1)

JSON Source