[TIMOB-14248] BlackBerry : Buttons are displayed as Ti.UI.SIZE even though dimensions are specified in the code
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-06-15T05:13:08.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2013 Sprint 12 BB, 2013 Sprint 12, Release 3.1.1, Release 3.2.0 |
Components | BlackBerry |
Labels | module_layout, qe-3.1.1, qe-testadded, regression |
Reporter | Lokesh Choudhary |
Assignee | Russell McMahon |
Created | 2013-06-14T22:06:24.000+0000 |
Updated | 2013-08-28T17:41:23.000+0000 |
Description
This is a regression.
Description:
1. Build an app for BB with the following code:
var win = Titanium.UI.createWindow({
backgroundColor:'#fff'
});
var exit1 = Ti.UI.createButton({
title:'Exit',
top:'50%',
left:'0%',
height:'10%',
width:'30%'
});
var win1back = Ti.UI.createButton({
title:'<-----',
top:'50%',
left:'30%',
height:'10%',
width:'35%'
});
var forward1 = Ti.UI.createButton({
title:'----->',
top:'50%',
left:'65%',
height:'10%',
width:'35%'
});
win.add(exit1);
win.add(win1back);
win.add(forward1);
win.open();
2. Build & run the app for BB simulator/device
3. On app launch notice the three buttons
Actual Result:
1. The buttons over lap each other & are displayed as Ti.UI.SIZE & not according to the dimensions specified.
2. The dimensions not respected are in both in absolute or percent format
Expected Result:
1. The buttons should respect specified dimensions & not default to SIZE
Merged into master Test code
ran test code all passed - nice regression tests
Verified the fix & the buttons are displayed as per the dimensions spcified. Thus closing. Environment: Ti Studio : 3.1.1.201306112235 Ti BB SDK : 3.1.1.v20130615160957 Mac OSX : 10.8.3 Alloy : 1.1.3-cr CLI - 3.1.1-cr win 7 Win 8 Z10 BB simulator : 10.0.10.822 Z10 device running 10.0.10.88