Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3500] iOS: Can't put backgroundSelectedImage into jss file

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-06-22T22:16:25.000+0000
Affected Version/sRelease 1.6.0
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterBalint Erdi
AssigneeIngo Muschenetz
Created2011-04-15T03:45:56.000+0000
Updated2017-06-22T22:16:25.000+0000

Description

The backgroundSelectedImage property works with inline styling:

Ti.UI.createButton({ id: 'details-back-button', backgroundImage: '../../assets/ui/button-back.png', backgroundSelectedImage: '../../assets/ui/button-back.png' });

But does not work from the jss file:

#details-back-button {
  background-image: '../../assets/ui/button-back.png';
  background-selected-image: '../../assets/ui/button-back.png';
}

(The reason I'm setting the same image as the selected one is that otherwise a black overlay shows up when tapping the button)

Comments

  1. Lee Morris 2017-06-22

    Closing as invalid as we no longer support JSS.

JSON Source