Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13823] BlackBerry: Ti.UI.Button is sized to the text and can not be made bigger. Use a view and native button composite.

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-06-10T15:55:27.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 12 BB, 2013 Sprint 12, Release 3.1.3, Release 3.2.0
ComponentsBlackBerry
Labelsqe-closed-3.2.0, qe-testadded
ReporterRussell McMahon
AssigneePedro Enrique
Created2013-05-10T18:18:13.000+0000
Updated2014-06-19T12:43:42.000+0000

Description

Comments

  1. Pedro Enrique 2013-06-05

    PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/78
  2. Pedro Enrique 2013-12-10

    Sample code:
       var win = Titanium.UI.createWindow({
       	layout: 'vertical'
       });
       
       win.add(Ti.UI.createButton({
       	top: 5,
       	title: '20 width',
       	width: 20
       }));
       win.add(Ti.UI.createButton({
       	top: 5,
       	title: '200 width',
       	width: 200
       }));
       win.add(Ti.UI.createButton({
       	top: 5,
       	title: 'FILL width',
       	width: Ti.UI.FILL
       }));
       win.add(Ti.UI.createButton({
       	top: 5,
       	title: 'SIZE width',
       	width: Ti.UI.SIZE
       }));
       
       win.open();
       

    NOTE:

    There is a blackberry limitation to this, the button has a hardcoded height and thus, it cannot be made taler.
  3. Olga Romero 2013-12-10

    Tested the above code with: Appcelerator Studio, build: 3.2.0.201312091648 Titanium SDK, build: 3.2.0.v20131210112451 CLI 3.2.0- cr Alloy 1.3.0-cr BB Z10 10.1.0.2019

JSON Source