Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13613] BlackBerry Q10 : Buttons in the Q10 device do not size to fit its text

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-06-18T01:57:38.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 12 BB, 2013 Sprint 12, Release 3.1.2, Release 3.2.0
ComponentsBlackBerry
Labelsblackberry, module_button, qe-testadded
ReporterLokesh Choudhary
AssigneeRussell McMahon
Created2013-04-18T00:15:41.000+0000
Updated2014-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

Comments

  1. Priya Agarwal 2013-07-18

    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

JSON Source