[TIMOB-4127] keyboardToolbar is broken on Modal window
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-06-29T10:05:07.000+0000 |
Affected Version/s | Release 1.6.2 |
Fix Version/s | Sprint 2011-26, Release 1.7.2 |
Components | iOS |
Labels | n/a |
Reporter | Alan Leard |
Assignee | Blain Hamon |
Created | 2011-05-17T16:37:33.000+0000 |
Updated | 2011-07-06T18:19:30.000+0000 |
Description
keyboardToolbar seems to be broken on textArea's added to a modal window. See test code below.
var win = Ti.UI.createWindow();
var modal = Ti.UI.createWindow({modal:true, backgroundColor:'blue'});
var clearButton = Ti.UI.createButton({
title: 'Clear'
});
flexSpace = Titanium.UI.createButton({
systemButton: Titanium.UI.iPhone.SystemButton.FLEXIBLE_SPACE
});
var textArea = Ti.UI.createTextArea({
top: 10,
left: 10,
width: 300,
height: 156,
borderRadius: 10,
// FIXME toolbar isn't rendering
keyboardToolbar: [flexSpace, clearButton],
keyboardToolbarHeight: 40,
keyboardToolbarColor: 'red',
suppressReturn: true,
backgroundColor: 'white',
keyboardType: Titanium.UI.KEYBOARD_DEFAULT,
appearance: Titanium.UI.KEYBOARD_APPEARANCE_DEFAULT
});
//Comment out these two lines and uncomment the next to see the working toolbar.
modal.add(textArea);
modal.open();
//win.add(textArea);
win.open();
Cherry pikins
Hunh. The cherry pick accidentally reopened this. Closing again.
Verified fixed with iOS simulator, iPhone 3GS (3.1.2), iPad 2 (4.3.3), iPod 3rd Gen (4.0.2), SDK 1.7.x r177ece80