[TIMOB-8220] Mobileweb: Ti.UI.TextField `backgroundImage` tiles instead of stretching
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2012-03-23T15:03:55.000+0000 |
| Affected Version/s | Release 2.0.0 |
| Fix Version/s | Release 2.0.0, Sprint 2012-06 |
| Components | MobileWeb |
| Labels | mw-list, qe-port |
| Reporter | Tony Lukasavage |
| Assignee | Bryan Hughes |
| Created | 2012-03-23T07:45:13.000+0000 |
| Updated | 2012-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();
Pull Request: https://github.com/appcelerator/titanium_mobile/pull/1814
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