From 082b92614fd1f0829522f626102ee008a062a37e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 21 Oct 2014 10:39:49 +0530 Subject: [PATCH] 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. --- src/calibre/gui2/proceed.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/proceed.py b/src/calibre/gui2/proceed.py index 3a494a0522..3a1c914a50 100644 --- a/src/calibre/gui2/proceed.py +++ b/src/calibre/gui2/proceed.py @@ -195,8 +195,8 @@ class ProceedQuestion(QWidget): 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()