Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14006] BlackBerry: View with height & width set to Ti.UI.SIZE & a label on it does not display the view

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-05-08T17:28:21.000+0000
Affected Version/sRelease 3.1.1, Release 3.2.0
Fix Version/sRelease 3.3.0
ComponentsBlackBerry
Labelsbb33, qe-closed-3.3.0, qe-testadded, sdk-bb
ReporterLokesh Choudhary
AssigneePedro Enrique
Created2013-05-28T20:23:19.000+0000
Updated2014-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

FileDateSize
Ti.UI.SIZE.tiff2013-07-18T20:56:49.000+000064140
TIMOB-14006.png2013-08-02T10:24:48.000+000015377

Comments

  1. Russell McMahon 2013-05-28

    Fixed with width and height adjusted per margins fix. timob-13777
  2. Russell McMahon 2013-06-04

    Fixed in pr timob-13777
  3. Lokesh Choudhary 2013-06-24

    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
  4. Russell McMahon 2013-06-24

    This works for me.
  5. Russell McMahon 2013-07-18

    running the above test yields this screen shot.
  6. Russell McMahon 2013-07-18

    Why was this reopened. I just tested and it works. See screen shot
  7. Priya Agarwal 2013-08-01

    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.
  8. Pedro Enrique 2013-08-01

    Priya, we cannot reproduce this. We're seeing what's expected. Can you please upload a screenshot of what you're seeing? Thanks!
  9. Priya Agarwal 2013-08-02

    Sorry for not attaching the screenshot while reopening.
  10. Olga Romero 2013-12-13

    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
  11. Pedro Enrique 2013-12-13

    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.
  12. Priya Agarwal 2014-05-12

    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.

JSON Source