E-book viewer: Fix regression in "flow" mode that caused horizontal scrollbar to be rendered as vertical. Fixes #1409916 [ebook-viewer shows another vertical scrollbar on horizontal content overflow](https://bugs.launchpad.net/calibre/+bug/1409916)

This commit is contained in:
Kovid Goyal 2015-01-16 09:36:38 +05:30
parent 2ab64729d8
commit 158e4075b9

View File

@ -221,7 +221,7 @@ class Main(MainWindow):
cl.addWidget(vs, 0, 1, 2, 1) cl.addWidget(vs, 0, 1, 2, 1)
self.horizontal_scrollbar = hs = QScrollBar(c) self.horizontal_scrollbar = hs = QScrollBar(c)
hs.setOrientation(Qt.Vertical), hs.setObjectName("horizontal_scrollbar") hs.setOrientation(Qt.Horizontal), hs.setObjectName("horizontal_scrollbar")
cl.addWidget(hs, 1, 0, 1, 1) cl.addWidget(hs, 1, 0, 1, 1)
self.tool_bar = tb = ToolBar(self) self.tool_bar = tb = ToolBar(self)