Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8501] iOS: UI - SearchBar in Ti.UI.iPad.Popover shows incorrect barColor

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionDuplicate
Resolution Date2017-07-20T18:56:17.000+0000
Affected Version/sRelease 2.0.0, Release 1.8.2, Release 3.1.0
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterChristian Siegert
AssigneeEric Merriman
Created2012-02-16T13:32:46.000+0000
Updated2017-07-20T18:56:17.000+0000

Description

Problem

When I add a search bar to an iPad popover's title bar, the search bar does not match the popover's style. If I set the search bar's barColor to "transparent", the barColor becomes black instead of transparent.

Test case

Ti.UI.setBackgroundColor("#FFF");
var window = Ti.UI.createWindow();

var button = Ti.UI.createButton({
	height: 40,
	title: "Show popover",
	width: 200
});

button.addEventListener("click", function() {
	var popover = Ti.UI.iPad.createPopover({
		height: 500,
		width: 200
	});

	var searchBar = Ti.UI.createSearchBar({
		// barColor: "transparent",
		height: 30,
		width: 130
	});
	popover.setLeftNavButton(searchBar);

	popover.show({
		view: button
	});
});

window.add(button);
window.open();
This ticket is a duplicate of TC-424. I was asked to reopen that ticket but can't find a way to do so. (Do community members have permission to reopen tickets? I couldn't find the button.)

Attachments

FileDateSize
bar_color_not_set.png2012-02-16T13:32:47.000+000010405
bar_color_transparent.png2012-02-16T13:32:47.000+000010975

Comments

  1. jithinpv 2013-04-02

    Issue reproduces Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 Titanium SDK version: 3.0.2 iOS iPad Simulator: iOS SDK version: 6.0
  2. Lee Morris 2017-07-20

    Duplicate of TIMOB-7704.

JSON Source