E-book viewer: Remove extra spacing between document and scrollbars. This is particularly noticeable when using a dark theme for the viewer.

This commit is contained in:
Kovid Goyal 2014-08-19 18:44:46 +05:30
parent b03e0c6eb0
commit 631c5a414c
2 changed files with 1 additions and 1 deletions

View File

@ -294,7 +294,6 @@ class EbookViewer(MainWindow):
self.was_maximized = self.isMaximized()
if not self.view.document.fullscreen_scrollbar:
self.vertical_scrollbar.setVisible(False)
self.centralwidget.layout().setContentsMargins(0, 0, 0, 0)
super(EbookViewer, self).showFullScreen()

View File

@ -169,6 +169,7 @@ class Main(MainWindow):
c.setObjectName('centralwidget')
self.setCentralWidget(c)
self.central_layout = cl = QGridLayout(c)
cl.setSpacing(0)
c.setLayout(cl), cl.setContentsMargins(0, 0, 0, 0)
self.view = v = DocumentView(self)