mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #727
This commit is contained in:
parent
f2f66ba6f2
commit
65639c2a18
@ -202,7 +202,7 @@ class Main(MainWindow, Ui_MainWindow):
|
||||
########################### Cover Flow ################################
|
||||
self.cover_flow = None
|
||||
if CoverFlow is not None:
|
||||
self.cover_flow = CoverFlow(height=220 if available_height() > 800 else 170)
|
||||
self.cover_flow = CoverFlow(height=220 if available_height() > 950 else 170 if available_height() > 850 else 140)
|
||||
self.cover_flow.setVisible(False)
|
||||
self.library.layout().addWidget(self.cover_flow)
|
||||
self.connect(self.cover_flow, SIGNAL('currentChanged(int)'), self.sync_cf_to_listview)
|
||||
@ -217,6 +217,8 @@ class Main(MainWindow, Ui_MainWindow):
|
||||
else:
|
||||
self.status_bar.cover_flow_button.disable(pictureflowerror)
|
||||
|
||||
|
||||
self.setMaximumHeight(available_height())
|
||||
|
||||
|
||||
####################### Setup device detection ########################
|
||||
@ -238,7 +240,7 @@ class Main(MainWindow, Ui_MainWindow):
|
||||
else:
|
||||
self.cover_flow.setVisible(False)
|
||||
self.status_bar.book_info.book_data.setMaximumHeight(1000)
|
||||
self.status_bar.setMaximumHeight(1200)
|
||||
self.setMaximumHeight(available_height())
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user