Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

"clearButtonMode" Doesn't Work. At all. Ever.

I can make my textFields do all kinds of things, but I can't ever get the clear button to show up. Here's my simplified code.

var myField = Ti.UI.createTextField({  
     clearButtonMode:Ti.UI.INPUT_BUTTONMODE_ONFOCUS
});
win.add(myField);

I'm using SDK 4.0 and Titanium 1.3.2.

Anyone else having trouble with clearButtonMode?

— asked June 29th 2010 by Clifton Labrum
  • clearbuttonmode
  • textfield
0 Comments

1 Answer

  • Found it! It's so fun to answer my own questions on this forum.

    Turns out that if you use any right padding on your input field, it will push the clear button off so it's not visible.

    — answered June 30th 2010 by Clifton Labrum
    permalink
    2 Comments
    • Thanks ;)

      — commented June 16th 2012 by Tanel Teemusk
    • +1

      — commented April 16th 2015 by Joseph Sachs
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.