mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-30 18:32:03 +00:00
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:
1 parent
baa69ff3bc
commit
535b8e5fc4
1 file changed
+1
-1
@@ -203,7 +203,7 @@ var _CPAutocompleteMenuMaximumHeight = 307;
|
||||
[self setIndexOfSelectedItem:indexOfSelectedItem];
|
||||
|
||||
[textField setThemeState:CPThemeStateAutocompleting];
|
||||
[_menuWindow orderFront:self];
|
||||
[[textField window] addChildWindow:_menuWindow ordered:CPWindowAbove];
|
||||
|
||||
[self layoutSubviews];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user