Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5906] iOS: NavButton image missing shadow

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionWon't Do
Resolution Date2020-01-09T19:27:13.000+0000
Affected Version/sRelease 1.7.0, Release 2.1.0
Fix Version/sn/a
ComponentsiOS
Labelsapi
ReporterSindre Sorhus
AssigneeIngo Muschenetz
Created2011-10-29T11:16:36.000+0000
Updated2020-01-09T19:27:13.000+0000

Description

The leftNavButton/rightNavButton is missing shadow when using a custom image. The shadow is visible when using a "systemButton" icon. !Screen Shot 2011-10-29 at 20.11.24.png! Testcase: Just place the "switch-language.png" and "switch-language@2x.png" in the "Resources/iphone" folder. app.js:
var switchLanguage = Ti.UI.createButton({
	image: "iphone/switch-language.png"
});

var actionButton = Ti.UI.createButton({
	systemButton: Ti.UI.iPhone.SystemButton.ACTION
});

var win = Ti.UI.createWindow({
	leftNavButton: switchLanguage,
	rightNavButton: actionButton
});

win.open({
	modal: true
});

Attachments

FileDateSize
Screen Shot 2011-10-29 at 20.11.24.png2011-10-29T11:16:36.000+000037105
switch-language.png2011-10-29T11:16:36.000+00001300
switch-language@2x.png2011-10-29T11:16:36.000+00001511

Comments

  1. Sindre Sorhus 2012-06-25

    I know this is very minor, but it makes my app look a little unprofessional since it looks a part from the right button. Can someone take a look at this?
  2. Neeraj Gupta 2012-06-25

    @Sindre - Have you tried it with the latest 2.1.0 build?
  3. Sindre Sorhus 2012-06-26

    Yes. Screenshot 2.1.0 build: https://img.skitch.com/20120626-j46ag3gxmdaadh9xxsmy1jbsu4.png
  4. Sindre Sorhus 2013-03-01

    bump
  5. Alan Hutton 2020-01-09

    It has been decided that this issue should be closed as “Won’t do.” This issue is out of date with our current supported SDK release (7.5.2.GA as of the date of closure), and out of date with mobile OS versions. Updating, or creating code may not reproduce the issue reported, or be a valid test case. If community members feel that the issue is still valid, please create a new ticket. Please reference this closed ticket number, include SDK used, comments, and code that demonstrates/reproduces the issue.

JSON Source