Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8220] Mobileweb: Ti.UI.TextField `backgroundImage` tiles instead of stretching

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2012-03-23T15:03:55.000+0000
Affected Version/sRelease 2.0.0
Fix Version/sRelease 2.0.0, Sprint 2012-06
ComponentsMobileWeb
Labelsmw-list, qe-port
ReporterTony Lukasavage
AssigneeBryan Hughes
Created2012-03-23T07:45:13.000+0000
Updated2012-08-27T13:54:58.000+0000

Description

Problem

Ti.UI.TextField tiles the backgroundImage instead of stretching it like the native platforms do.

Test Case


var win = Ti.UI.createWindow({
	backgroundColor: '#fff',
	fullscreen: false,
	exitOnClose: true
});

var tf = Ti.UI.createTextField({
	backgroundImage: 'KS_nav_ui.png', // from the default project
	width: 300,
	height: 50
});
win.add(tf);

win.open();

Comments

  1. Bryan Hughes 2012-03-23

    Pull Request: https://github.com/appcelerator/titanium_mobile/pull/1814
  2. Lokesh Choudhary 2012-08-27

    Verified fix on: Titanium studio : 2.1.1.201207271312 SDK version : 2.2.0.v20120824175712 Chrome 21.0.xx Firefox 14.0.1 Safari 6.0 Android 2.3.6 default browser Iphone 5.0.1 mobile safari

JSON Source