Make the max width on the proceed notification the width of the main window. Should help with plugins that create lots of buttons with lots of text.

This commit is contained in:
Kovid Goyal 2014-10-21 10:39:49 +05:30
parent cfd61e90a5
commit 082b92614f

View file

@ -195,8 +195,8 @@ def toggle_det_msg(self, *args):
def do_resize(self):
sz = self.sizeHint() + QSize(100, 0)
sz.setWidth(min(500, sz.width()))
sz.setHeight(min(500, sz.height()))
sz.setWidth(min(self.parent().width(), sz.width()))
sz.setHeight(min(600, sz.height()))
self.resize(sz)
self.position_widget()