Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3496] iOS: Set width of leftNavButton

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionWon't Do
Resolution Date2020-01-09T18:55:27.000+0000
Affected Version/sRelease 2.1.0
Fix Version/sn/a
ComponentsiOS
Labelsapi, training
ReporterSindre Sorhus
AssigneeIngo Muschenetz
Created2011-04-15T03:45:55.000+0000
Updated2020-01-09T18:55:27.000+0000

Description

It is not possible to set the width of the leftNavButton, and as default it's not the same width as the system button. This makes it inconsistent when using a system button style on one, and a custom image on the other. See screenshot.

Attachments

FileDateSize
screenshot-2011-04-02-19h-54m-2.png2011-04-15T03:45:55.000+000020116

Comments

  1. Sindre Sorhus 2012-01-02

    Any updates?
  2. Stephen Tramer 2012-01-03

    We require a test case to resolve this bug.
  3. Sindre Sorhus 2012-01-04

    Test case

       var button = Ti.UI.createButton({
       	width: 100
       });
       
       var systemButton = Ti.UI.createButton({
       	systemButton: Ti.UI.iPhone.SystemButton.ACTION
       });
       
       var win = Ti.UI.createWindow({
       	leftNavButton: button,
       	rightNavButton: systemButton
       });
       
       win.open({
       	modal: true
       });
       
    Confirmed on 1.8.0.1 and iOS 5 simulator.
  4. Sindre Sorhus 2012-07-08

    This is still an issue on Titanium SDK 2.1.0 an iOS 5.1. Can someone take a look at this?
  5. Sindre Sorhus 2013-03-01

    bump
  6. 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