[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 Issue | n/a |
|---|---|
| Type | New Feature |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2013-06-10T15:55:27.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | 2013 Sprint 12 BB, 2013 Sprint 12, Release 3.1.3, Release 3.2.0 |
| Components | BlackBerry |
| Labels | qe-closed-3.2.0, qe-testadded |
| Reporter | Russell McMahon |
| Assignee | Pedro Enrique |
| Created | 2013-05-10T18:18:13.000+0000 |
| Updated | 2014-06-19T12:43:42.000+0000 |
PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/78
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.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