GitHub Issue | n/a |
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-07-25T22:08:45.000+0000 |
Affected Version/s | Release 3.0.0, Release 3.0.2, Release 3.1.0 |
Fix Version/s | 2013 Sprint 15 API, 2013 Sprint 15, Release 3.1.2, Release 3.2.0 |
Components | iOS |
Labels | module_button, qe-closed-3.1.2, qe-testadded |
Reporter | Trevor Borgmeier |
Assignee | Vishal Duggal |
Created | 2013-04-25T06:58:40.000+0000 |
Updated | 2013-08-22T11:47:40.000+0000 |
*Actual behavior*
Since Ti SDK 3.0 GA, the end cap stretches.
*Expected behavior*
The image should not stretch, like it doesn't with 2.1.4 GA.
*Test case*
Ti.UI.backgroundColor = 'white';
var win = Ti.UI.createWindow();
var selectMenuButton = Ti.UI.createButton({
left : 5,
right : 5,
height : 31,
backgroundImage : "arrow_down.png",
backgroundLeftCap : 1
});
win.add(selectMenuButton);
win.open();
Tested and confirmed on iOS 6 simulator with Ti SDK 3.1 GA, 3.0.2 GA, 3.0 GA, 2.1.4 GA and 2.1.2 GA. The regression is between 2.1.4 GA and 3.0 GA. Completed and simplified test case.
Not a regression. Expected behavior change. Forgot to update docs. Doing so now.
Pull pending against master https://github.com/appcelerator/titanium_mobile/pull/4489
Backport to 3_1_X https://github.com/appcelerator/titanium_mobile/pull/4490
Verified behaving as expected. Documentation is updated. Titanium SDK 3.1.2.v20130808180613 Alloy 1.2.0-alpha6 Appcelerator Studio 3.1.2.201308071912 CLI 3.1.2-alpha Node 0.10.13 Closing.