1) Run sample on iPad Sim/device and hit "Focus to see keyboard w/ toolbar"
2) Undock Keyboard by clicking the icon at bottom right.
3) Events work as expected
4) Hide keyboard, noticed toolbar remains in the middle of screen.
var win = Ti.UI.createWindow({
//title : _args.title
});
win.orientationModes = [Titanium.UI.PORTRAIT, Titanium.UI.UPSIDE_PORTRAIT, Titanium.UI.LANDSCAPE_LEFT, Titanium.UI.LANDSCAPE_RIGHT];
var flexSpace = Titanium.UI.createButton({
systemButton : Titanium.UI.iPhone.SystemButton.FLEXIBLE_SPACE
});
var tf = Titanium.UI.createTextField({
height : 32,
backgroundImage : 'KS_nav_ui.png',
width : 200,
font : {
fontSize : 13
},
color : '#777',
paddingLeft : 10,
borderStyle : Titanium.UI.INPUT_BORDERSTYLE_NONE
});
var camera = Titanium.UI.createButton({
backgroundImage : 'KS_nav_views.png',
height : 33,
width : 33
});
camera.addEventListener('click', function() {
Titanium.UI.createAlertDialog({
title : 'Toolbar',
message : 'You clicked camera!'
}).show();
});
var send = Titanium.UI.createButton({
backgroundImage : 'KS_nav_ui.png',
backgroundSelectedImage : 'KS_nav_views.png',
width : 67,
height : 32
});
send.addEventListener('click', function() {
Titanium.UI.createAlertDialog({
title : 'Toolbar',
message : 'You clicked send!'
}).show();
});
var textfield = Titanium.UI.createTextField({
color : '#336699',
value : 'Focus to see keyboard w/ toolbar',
height : 35,
width : 300,
top : 10,
borderStyle : Titanium.UI.INPUT_BORDERSTYLE_ROUNDED,
keyboardToolbar : [flexSpace, camera, flexSpace, tf, flexSpace, send, flexSpace],
keyboardToolbarColor : '#999',
keyboardToolbarHeight : 40
});
var textfield2 = Titanium.UI.createTextField({
color : '#336699',
value : 'Focus to see keyboard w/o toolbar',
height : 35,
width : 300,
top : 70,
borderStyle : Titanium.UI.INPUT_BORDERSTYLE_ROUNDED
});
win.add(textfield);
win.add(textfield2);
win.open();
Need to check if it's a regression.
Not a regression. Attached image from device.
Here is a video showing the issue: http://screencast.com/t/jsfTcLvQc8
Can we check if it is reproducible natively?
So far I can't reproduce natively.
PR here: https://github.com/appcelerator/titanium_mobile/pull/6849
Verified the fix. The toolbar is now removed after undocking keyboard. Closing. Environment: Appc Studio : 4.1.0.201505071004 Ti SDK : 4.1.0.v20150529013634 CLI : 4.0.1 Alloy : 1.6.0 MAC Yosemite : 10.10.3 Appc npm : 4.0.0 Appc CLI : 4.0.1 Node: v0.10.37 Ipad Simulator : Ipad Retina IOS 8.3