Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

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

GitHub Issuen/a
TypeBug
PriorityLow
StatusReopened
ResolutionUnresolved
Affected Version/sRelease 1.7.5, Release 1.8.1, Release 3.1.0
Fix Version/sn/a
ComponentsiOS
Labelsapi
ReporterChristian Siegert
AssigneeUnknown
Created2011-11-19T10:15:15.000+0000
Updated2018-03-06T18:58:00.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();

Attachments

FileDateSize
bar_color_not_set.png2011-11-19T10:15:15.000+000010405
bar_color_transparent.png2011-11-19T10:15:15.000+000010975

Comments

  1. Paul Dowsett 2011-12-21

    Christian Thank you for raising this ticket. Please note the minor changes I made. Would you please provide the the iOS version you tested? Once you have completed the information, reopen the ticket and I will escalate it. Cheers
  2. Christian Siegert 2011-12-21

    I provided the missing info but can't find a way to reopen the ticket.
  3. Paul Dowsett 2012-02-17

    Sorry for the delay, Christian. Moving across now.
  4. jithinpv 2013-05-07

    issue reproduces Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 iOS iPhone Simulator: iOS SDK version: 6.0

JSON Source