Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4127] keyboardToolbar is broken on Modal window

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2011-06-29T10:05:07.000+0000
Affected Version/sRelease 1.6.2
Fix Version/sSprint 2011-26, Release 1.7.2
ComponentsiOS
Labelsn/a
ReporterAlan Leard
AssigneeBlain Hamon
Created2011-05-17T16:37:33.000+0000
Updated2011-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();

Comments

  1. Blain Hamon 2011-06-28

    Cherry pikins
  2. Blain Hamon 2011-06-29

    Hunh. The cherry pick accidentally reopened this. Closing again.
  3. Eric Merriman 2011-07-06

    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

JSON Source