Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AutoComplete: resizing when changing source shows blank item #1394

Closed
joshtynjala opened this issue Jun 3, 2016 · 0 comments
Closed

AutoComplete: resizing when changing source shows blank item #1394

joshtynjala opened this issue Jun 3, 2016 · 0 comments
Labels
Milestone

Comments

@joshtynjala
Copy link
Member

joshtynjala commented Jun 3, 2016

Forum thread: http://forum.starling-framework.org/topic/autocomplete-and-item-not-visible

Create AutoComplete:

this.input = new AutoComplete();
this.input.autoCompleteDelay = 0;
updateSource();
this.addChild(this.input);

var button:Button = new Button();
button.label = "Click Me";
button.y = 50;
button.addEventListener(Event.TRIGGERED, function():void
{
    saveNewItem();
});
this.addChild(button);

Functions:

public function saveNewItem():void
{
    myArray.push(this.input.text);
    updateSource();
}

private function updateSource():void
{
    var source:LocalAutoCompleteSource = new LocalAutoCompleteSource( new ListCollection( myArray ) );
    this.input.source = source;
}

steps to reproduce :

  • tap on keyboard "go" -> "Click Me"
  • tap on keyboard "goo" -> "Click Me"
  • tap on keyboard "goog" -> "Click Me"
  • keyboard "backspace"
  • keyboard "backspace"
@joshtynjala joshtynjala added the bug label Jun 3, 2016
@joshtynjala joshtynjala added this to the 3.1 milestone Jun 3, 2016
@joshtynjala joshtynjala changed the title List: adding item and resizing AutoComplete: resizing when changing source shows blank item Jun 3, 2016
joshtynjala added a commit that referenced this issue Jun 23, 2016
…resized, such as when new items are added to a List (closes #1394) (references feathersui/feathersui-starling-sdk#36)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant