Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8263] iOS: Toolbar - Add ability to specify a custom height

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusClosed
ResolutionWon't Fix
Resolution Date2013-10-22T17:43:33.000+0000
Affected Version/sRelease 1.8.2
Fix Version/s2013 Sprint 22, 2013 Sprint 22 API
ComponentsiOS
Labelsios7, triage
ReporterJon Alter
AssigneeVishal Duggal
Created2012-03-23T21:43:05.000+0000
Updated2017-03-22T18:15:06.000+0000

Description

Requesting the ability to set the height of a toolbar.

Steps to reproduce:

Step 1: run the code below Step 2: notice that setting the 'height' of the toolbar has no affect
var win = Ti.UI.createWindow({
    backgroundColor:'white',
    modal: true
});
win.open();

var send = Titanium.UI.createButton({
    title: 'Send',
    style: Titanium.UI.iPhone.SystemButtonStyle.DONE,
});

var camera = Titanium.UI.createButton({
    systemButton: Titanium.UI.iPhone.SystemButton.CAMERA,
});

var cancel = Titanium.UI.createButton({
    systemButton: Titanium.UI.iPhone.SystemButton.CANCEL
});

flexSpace = Titanium.UI.createButton({
    systemButton:Titanium.UI.iPhone.SystemButton.FLEXIBLE_SPACE
});

var toolbar = Titanium.UI.iOS.createToolbar({
    items:[send, flexSpace, camera, flexSpace, cancel],
    bottom:0,
    borderTop:true,
    borderBottom:false,
    height: 100
});
win.add(toolbar);

Attachments

FileDateSize
iOS Simulator Screen shot Oct 22, 2013 10.41.07 AM.png2013-10-22T17:41:42.000+000022086

Comments

  1. Mario 2013-09-20

    Any news for this bug? It is very important to set the height because on iOS 7 there is an extra space of 20 pixel needed on top for the system bar.
  2. Sebastian Klaus 2013-09-20

    I'm interested in this too!
  3. Dan Tamas 2013-10-21

    I'd like to have this too. Thank you.
  4. Vishal Duggal 2013-10-22

    Bad behavior on iOS7
  5. Vishal Duggal 2013-10-22

    We are not going to expose this functionality. iOS7 has some layout issues with toolbar items (see screenshot for attached example). And we have no control over the layout of the items.
  6. Fokke Zandbergen 2013-11-26

    So basically Ti.UI.iOS.Toolbar is useless on iOS7 when you need it position at the top? Let's deprecate the darn thing then
  7. Sebastian Klaus 2013-11-26

    Deprecating is such a bad idea. Ti.UI.iOS.Toolbar could be used on more positions than top!
  8. Lee Morris 2017-03-22

    Closing ticket as the issue will not fix and with reference to the above comments.

JSON Source