Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2884] Button in bar should be able to display both image and title

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2011-12-28T05:37:33.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsbutton, buttonbar, buttons, ios
ReporterSergej Kotliar
AssigneePaul Dowsett
Created2011-11-03T02:41:58.000+0000
Updated2016-03-08T07:47:50.000+0000

Description

This happens for all buttons in both toolbar, tabbedbar, buttonbar, etc. Documentation says the following: https://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.TabbedBar-object "labels array the array of labels for the button bar. each object should have the properties title, image, width and enabled." In practice, if an image is specified, no title is displayed. There's nothing limiting the button from displaying both the button and the title, many apps do that. Try this var tabbedbar = Titanium.UI.createTabbedBar({ labels:[ {title: 'Item 1', width: 100, image: 'images/image1.png'}, {title: 'Item 2', width: 100, image: 'images/image2.png'}, {title: 'Item 3', width: 100, image: 'images/image3.png'}, ], style:Titanium.UI.iPhone.SystemButtonStyle.BAR, });

Comments

  1. Paul Dowsett 2011-12-28

    Thanks for raising this ticket. In order for me to escalate it to the core team, all the fields must be complete. Please check it against the [JIRA Ticket Checklist](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist), and add any missing information. Furthermore, a test case must run without modification, as per the [Creating a Test Case](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-CreatingaTestCase) section. I will mark this resolved for now. Please reopen it once it is complete, and I will move it to the main project. Cheers
  2. Paul Dowsett 2012-02-17

    Closing due to inactivity. If this issue still exists, please raise a new ticket, including all the information in the [JIRA Ticket Checklist](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist) to ensure that we can escalate it quickly. Read [How to Submit a Bug Report](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report) if you have not read it before, and always start a ticket using the [JIRA Ticket Template](https://wiki.appcelerator.org/display/guides/JIRA+Ticket+Template). Thanks in advance

JSON Source