diff --git a/src/calibre/gui2/metadata/single_download.py b/src/calibre/gui2/metadata/single_download.py index 72b0fd9b1c..e4a78b674a 100644 --- a/src/calibre/gui2/metadata/single_download.py +++ b/src/calibre/gui2/metadata/single_download.py @@ -376,6 +376,13 @@ class Comments(QWebView): # {{{ '''%(fam, f, c) self.setHtml(templ%html) + + def sizeHint(self): + # This is needed, because on windows the dialog cannot be resized to + # so that this widgets height become < sizeHint().height(). Qt sets the + # sizeHint to (800, 600), which makes the dialog unusable on smaller + # screens. + return QSize(800, 300) # }}} class IdentifyWorker(Thread): # {{{ @@ -977,12 +984,6 @@ class FullFetch(QDialog): # {{{ if geom is not None and geom: self.restoreGeometry(geom) - # Workaround for Qt 4.8.0 bug that causes the frame of the window to go - # off the top of the screen if a max height is not set for the - # QWebView. Seems to only happen on windows, but keep it for all - # platforms just in case. - self.identify_widget.comments_view.setMaximumHeight(self.height()-100) - self.finished.connect(self.cleanup) def view_log(self):