forked from openlp/openlp
Screen size and scrollbar fix?
This commit is contained in:
parent
5dd5e15060
commit
9c0391fe73
@ -129,11 +129,14 @@ class OpenLP(QtGui.QApplication):
|
||||
screens = ScreenList()
|
||||
# Decide how many screens we have and their size
|
||||
for screen in xrange(0, self.desktop().numScreens()):
|
||||
if self.desktop().isVirtualDesktop():
|
||||
size = self.desktop().availableGeometry(screen);
|
||||
else:
|
||||
size = self.desktop().screenGeometry(screen);
|
||||
screens.add_screen({u'number': screen,
|
||||
u'size': self.desktop().availableGeometry(screen),
|
||||
u'size': size,
|
||||
u'primary': (self.desktop().primaryScreen() == screen)})
|
||||
log.info(u'Screen %d found with resolution %s',
|
||||
screen, self.desktop().availableGeometry(screen))
|
||||
log.info(u'Screen %d found with resolution %s', screen, size)
|
||||
# start the main app window
|
||||
self.mainWindow = MainWindow(screens, app_version)
|
||||
self.mainWindow.show()
|
||||
|
@ -40,6 +40,7 @@ HTMLSRC = u"""
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
body {
|
||||
%s;
|
||||
|
Loading…
Reference in New Issue
Block a user