diff -r c1e5b9f19483 -r c74815729afd controls/TextCtrlAutoComplete.py --- a/controls/TextCtrlAutoComplete.py Thu Aug 17 17:25:17 2017 +0300 +++ b/controls/TextCtrlAutoComplete.py Fri Aug 18 12:36:31 2017 +0300 @@ -60,9 +60,10 @@ itemcount = min(len(choices), MAX_ITEM_SHOWN) width = self.Parent.GetSize()[0] - height = max_text_height * itemcount + \ - LISTBOX_INTERVAL_HEIGHT * max(0, itemcount - 1) + \ - 2 * LISTBOX_BORDER_HEIGHT + height = \ + max_text_height * itemcount + \ + LISTBOX_INTERVAL_HEIGHT * max(0, itemcount - 1) + \ + 2 * LISTBOX_BORDER_HEIGHT if max_text_width + 10 > width: height += 15 size = wx.Size(width, height)