Fixed: orphan token field autocomplete menus.

If the parent or grandparent window of a token field which was showing an autocomplete menu was closed, the menu would stick around even that the token field was gone.

This fix makes the token field autocomplete menu a proper child window which should also ensure it moves as needed if the parent window moves.
This commit is contained in:
Alexander Ljungberg committed 2013-02-08 00:42:53 +00:00
1 parent baa69ff3bc
commit 535b8e5fc4
1 file changed
+1 -1
+1 -1
View File
@@ -203,7 +203,7 @@ var _CPAutocompleteMenuMaximumHeight = 307;
[self setIndexOfSelectedItem:indexOfSelectedItem];
[textField setThemeState:CPThemeStateAutocompleting];
[_menuWindow orderFront:self];
[[textField window] addChildWindow:_menuWindow ordered:CPWindowAbove];
[self layoutSubviews];
}