[TIMOB-14006] BlackBerry: View with height & width set to Ti.UI.SIZE & a label on it does not display the view
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-05-08T17:28:21.000+0000 |
Affected Version/s | Release 3.1.1, Release 3.2.0 |
Fix Version/s | Release 3.3.0 |
Components | BlackBerry |
Labels | bb33, qe-closed-3.3.0, qe-testadded, sdk-bb |
Reporter | Lokesh Choudhary |
Assignee | Pedro Enrique |
Created | 2013-05-28T20:23:19.000+0000 |
Updated | 2014-06-19T12:43:38.000+0000 |
Description
Description:
1. Create A BB app with the following code:
var win1 = Titanium.UI.createWindow({
backgroundColor:'#fff'
});
var view1 = Titanium.UI.createView({
backgroundColor:'red',
width:Ti.UI.SIZE,
height:Ti.UI.SIZE
});
var label1 = Titanium.UI.createLabel({
backgroundColor:'blue',
color:'#999',
text:'Label Test',
font:{fontSize:20,fontFamily:'Helvetica Neue',fontStyle:'italic'},
width:Ti.UI.SIZE,
height:Ti.UI.SIZE
});
view1.add(label1);
win1.add(view1);
win1.open();
2. Build and run the app on BB device or simulator
3. Launch the app
Actual Results:
1. The view is not displayed
Expected Resuts:
1. The view is displayed along with the label
Attachments
File | Date | Size |
---|---|---|
Ti.UI.SIZE.tiff | 2013-07-18T20:56:49.000+0000 | 64140 |
TIMOB-14006.png | 2013-08-02T10:24:48.000+0000 | 15377 |
Fixed with width and height adjusted per margins fix. timob-13777
Fixed in pr timob-13777
I can see this issue again . Thus reopening. This is a regression now. Environment: Ti Studio : 3.1.1.201306112235 Ti BB SDK : 3.1.2.v20130624104600 & 3.2.0.v20130624141648 Mac OSX : 10.8.4 Alloy : 1.1.3 CLI - 3.1.1 win 7 Win 8 Z10 BB simulator : 10.0.10.822 Z10 device running 10.0.10.88
This works for me.
running the above test yields this screen shot.
Why was this reopened. I just tested and it works. See screen shot
Verified with: Studio: 3.1.2.201307261628 SDK: 3.1.2.v20130730133101 acs:1.0.4 alloy:1.2.0-alpha titanium:3.1.1 titanium-code-processor:1.0.2-alpha OS: OSX 10.8.4 Device:Blackberry-Z10(v 10.0.10.261) blackberry SDK: 10.1.0.1020 Still not working. Getting white coloured screen.
Priya, we cannot reproduce this. We're seeing what's expected. Can you please upload a screenshot of what you're seeing? Thanks!
Sorry for not attaching the screenshot while reopening.
Reopened, talked to [~penrique] Appcelerator Studio, build: 3.2.0.201312101708 Titanium SDK, build: 3.2.0.v20131212122847 CLI 3.2.0-cr3 Alloy 1.3.0-cr BlackBerryZ10 10.1 Note: this code works on Simulator BB10_2_0X
Something very odd. This fails on device when using Titanium Studio, but it works fine on simulator. Also works fine on device when running from Momentics.
Verified the Fixed with environment: Appc-Studio:3.3.0.201405080918 sdk:3.3.0.v20140509180608 acs:1.0.14 alloy:1.4.0-dev npm:1.3.2 titanium:3.3.0-dev titanium-code-processor:1.1.1 xcode:5.1.1 Device:Blackberry Z10(v10.0.10.261) Getting the label and View when View height and width set as "Ti.UI.SIZE". Working as expected. Hence Closing the issue.