Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13695] iOS: backgroundLeftCap not stretching a single pixel, but stretching everything to the right of the left cap uniformly

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-07-25T22:08:45.000+0000
Affected Version/sRelease 3.0.0, Release 3.0.2, Release 3.1.0
Fix Version/s2013 Sprint 15 API, 2013 Sprint 15, Release 3.1.2, Release 3.2.0
ComponentsiOS
Labelsmodule_button, qe-closed-3.1.2, qe-testadded
ReporterTrevor Borgmeier
AssigneeVishal Duggal
Created2013-04-25T06:58:40.000+0000
Updated2013-08-22T11:47:40.000+0000

Description

*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();

Attachments

FileDateSize
arrow_down.png2013-04-25T06:58:40.000+00002067
arrow_down-as-rendred-in-iOS.png2013-04-25T06:58:40.000+00003844

Comments

  1. Daniel Sefton 2013-04-26

    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.
  2. Vishal Duggal 2013-07-25

    Not a regression. Expected behavior change. Forgot to update docs. Doing so now.
  3. Vishal Duggal 2013-07-25

    Pull pending against master https://github.com/appcelerator/titanium_mobile/pull/4489
  4. Vishal Duggal 2013-07-25

    Backport to 3_1_X https://github.com/appcelerator/titanium_mobile/pull/4490
  5. Federico Casali 2013-08-09

    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.

JSON Source