[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 Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-03-14T10:45:55.000+0000 |
Affected Version/s | Release 1.8.1 |
Fix Version/s | Release 2.0.0, Sprint 2012-06 |
Components | iOS |
Labels | module_window, parity, qe-testadded |
Reporter | Michael Pettiford |
Assignee | Vishal Duggal |
Created | 2012-01-31T15:48:17.000+0000 |
Updated | 2012-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
File | Date | Size |
---|---|---|
screencap.PNG | 2012-01-31T15:48:17.000+0000 | 40625 |
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)