From 6a407327118744fe93aef1b0cd45e4368ff6f017 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 6 Jan 2011 20:34:23 -0700 Subject: [PATCH] ... --- src/calibre/gui2/book_details.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/book_details.py b/src/calibre/gui2/book_details.py index 8e3e8b10de..2f7892692c 100644 --- a/src/calibre/gui2/book_details.py +++ b/src/calibre/gui2/book_details.py @@ -256,8 +256,10 @@ class BookInfo(QWebView): % (left_pane, right_pane))) def mouseDoubleClickEvent(self, ev): - if self.width() - ev.x() < 25 or \ - self.height() - ev.y() < 25: + swidth = self.page().mainFrame().scrollBarGeometry(Qt.Vertical).width() + sheight = self.page().mainFrame().scrollBarGeometry(Qt.Horizontal).height() + if self.width() - ev.x() < swidth or \ + self.height() - ev.y() < sheight: # Filter out double clicks on the scroll bar ev.accept() else: