[TIMOB-13613] BlackBerry Q10 : Buttons in the Q10 device do not size to fit its text
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-06-18T01:57:38.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2013 Sprint 12 BB, 2013 Sprint 12, Release 3.1.2, Release 3.2.0 |
Components | BlackBerry |
Labels | blackberry, module_button, qe-testadded |
Reporter | Lokesh Choudhary |
Assignee | Russell McMahon |
Created | 2013-04-18T00:15:41.000+0000 |
Updated | 2014-06-19T12:42:58.000+0000 |
Description
Description:
1. Create an app with the following code in the app.js:
var win = Titanium.UI.createWindow();
var scroll = Ti.UI.createScrollView({
backgroundColor: '#ccc',
width: Ti.UI.FILL,
height: Ti.UI.FILL,
layout: 'vertical',
contentHeight: Ti.UI.SIZE,
contentWidth: Ti.UI.FILL
});
function MyButton(title) {
return Ti.UI.createButton({
title: title,
top: 10
});
}
for(var i = 0; i < 100; i++) {
scroll.add(MyButton('Button #' + (i + 1)));
}
win.add(scroll);
win.open();
2. Notice the button text after the app launches
Actual Results:
1. The button text are cut as the buttons do not size to fit its text
Expected results:
1. The buttons should fit its contents
Updated label. Closing as fixed. Verified with environment: Studio: 3.1.2.201307161852 Titanium SDK:3.1.2.v20130710144553 acs:1.0.3 alloy:1.1.3 npm:1.3.2 titanium:3.1.1 titanium-code-processor:1.0.1 OS: OSX 10.8 Device:Blackberry-Z10(v 10.0.10.261) BlackBerry Q10 : Buttons in the Q10 device now size to fit its text blackberry SDK: 10.1.0.1020