Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Medium
-
Resolution: Fixed
-
Affects Version/s: Release 3.5.0
-
Fix Version/s: Release 4.1.0
-
Component/s: iOS
-
Labels:
-
Environment:
Titanium SDK 4.0.0.v20150210131633
Studio 3.4.1.201410281743
Xcode 6.1.1 & 6.2b5On:
iPhone 6, iOS 8.2b5
iPhone 6 Plus, iOS 8.3b
iPad Air 2, iOS 8.2b5
iPhone 6 Sim, iOS 8.1
-
Story Points:2
-
Sprint:2015 Sprint 10 SDK
Description
No change is witnessed when attempting to change a searchbar's background image
Steps to reproduce issue:
1. Launch the sample code below
2. Click on "Click to set image"
3. Notice that the background of the searchbar is not changed
Expected Results:
The serchbar background is changed
Notes:
I see the same behavior with 3.4.1.GA and 3.5.0 GA
var win = Ti.UI.createWindow({
|
title : 'searchbar with backgroundImage',
|
backgroundColor : '#fff'
|
});
|
var searchbar = Ti.UI.createSearchBar({
|
top : 0,
|
showCancel : true,
|
backgroundImage : 'KS_nav_ui.png',
|
prompt : 'prompt text',
|
height : 100,
|
hintText : "This is the hint text",
|
});
|
var btn = Ti.UI.createButton({
|
top : 200,
|
left : 10,
|
title : 'click to set image',
|
height : 100,
|
});
|
btn.addEventListener('click', function() {
|
searchbar.backgroundImage = 'KS_nav_views.png';
|
});
|
win.add(searchbar);
|
win.add(btn);
|
win.open();
|