Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12567] BlackBerry : If 'top' & bottom' proporties are missing then the controls are not centered

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-05-26T17:34:34.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsBlackBerry
Labelssdk-bb
ReporterLokesh Choudhary
AssigneeRussell McMahon
Created2013-02-04T21:18:56.000+0000
Updated2014-06-19T12:43:17.000+0000

Description

Description: 1.Build & run KS on BB simulator or device 2.Goto controls -> slider -> change min/max OR 1.Run the code below on BB simulator/device
var win = Ti.UI.createWindow();
var slider = Ti.UI.createSlider({
	    value: 0,
	    min: 0,
	    max: 100,
	    left:10,
	    right:10
});
win.add(slider);
win.open();
Actual results: 1.We see the slider on the top rather than in the center Expected result: According to pedro the layout engine should center the controls when the top & bottom proporties are missing

Attachments

FileDateSize
Screen Shot 2013-02-04 at 1.18.09 PM.png2013-02-04T21:18:56.000+000042661

Comments

  1. Lokesh Choudhary 2013-05-28

    Verified the fix & the controls are displayed at the center. Environment: Ti Studio : 3.1.1.201305150313 Ti BB SDK : 3.1.1.v20130524180421 Mac OSX : 10.8.2 win 7 Win 8 Z10 BB simulator : 10.0.10.822 Z10 device running 10.0.10.88 Q10 Simulator : 10.1.0.1720 Q10 Dev alpha C device running 10.1.0.138

JSON Source