Skip to content

Commit 4812b1e

Browse files
committed
修复历史发送列表内容太长,强制使用最小大小导致超出屏幕后,弹窗无法渲染的问题,默认最大不超过屏幕。
1 parent 729c1d5 commit 4812b1e

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

COMTool/Combobox.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,6 @@ def showPopup(self):
2121
pass
2222

2323
def _showPopup(self):
24-
max_w = 0
25-
for i in range(self.count()):
26-
w = self.view().sizeHintForColumn(i)
27-
if w > max_w:
28-
max_w = w
29-
self.view().setMinimumWidth(max_w + 50)
3024
super(ComboBox, self).showPopup()
3125

3226
def showItems(self):

0 commit comments

Comments
 (0)