[TIMOB-8263] iOS: Toolbar - Add ability to specify a custom height
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | High |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2013-10-22T17:43:33.000+0000 |
Affected Version/s | Release 1.8.2 |
Fix Version/s | 2013 Sprint 22, 2013 Sprint 22 API |
Components | iOS |
Labels | ios7, triage |
Reporter | Jon Alter |
Assignee | Vishal Duggal |
Created | 2012-03-23T21:43:05.000+0000 |
Updated | 2017-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
File | Date | Size |
---|---|---|
iOS Simulator Screen shot Oct 22, 2013 10.41.07 AM.png | 2013-10-22T17:41:42.000+0000 | 22086 |
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.
I'm interested in this too!
I'd like to have this too. Thank you.
Bad behavior on iOS7
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.
So basically
Ti.UI.iOS.Toolbar
is useless on iOS7 when you need it position at the top? Let's deprecate the darn thing thenDeprecating is such a bad idea. Ti.UI.iOS.Toolbar could be used on more positions than top!
Closing ticket as the issue will not fix and with reference to the above comments.