mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Fix #2574 (Cannot Maximize Calibre Anymore)
This commit is contained in:
parent
e1aec91911
commit
f53c5f3916
@ -477,8 +477,9 @@ class Main(MainWindow, Ui_MainWindow, DeviceGUI):
|
|||||||
else:
|
else:
|
||||||
self.status_bar.cover_flow_button.disable(pictureflowerror)
|
self.status_bar.cover_flow_button.disable(pictureflowerror)
|
||||||
|
|
||||||
|
self._calculated_available_height = min(max_available_height()-15,
|
||||||
self.setMaximumHeight(max_available_height())
|
self.height())
|
||||||
|
self.resize(self.width(), self._calculated_available_height)
|
||||||
|
|
||||||
|
|
||||||
if config['autolaunch_server']:
|
if config['autolaunch_server']:
|
||||||
@ -610,7 +611,8 @@ class Main(MainWindow, Ui_MainWindow, DeviceGUI):
|
|||||||
else:
|
else:
|
||||||
self.cover_flow.setVisible(False)
|
self.cover_flow.setVisible(False)
|
||||||
#self.status_bar.book_info.book_data.setMaximumHeight(1000)
|
#self.status_bar.book_info.book_data.setMaximumHeight(1000)
|
||||||
self.setMaximumHeight(available_height())
|
self.resize(self.width(), self._calculated_available_height)
|
||||||
|
#self.setMaximumHeight(available_height())
|
||||||
|
|
||||||
def toggle_tags_view(self, show):
|
def toggle_tags_view(self, show):
|
||||||
if show:
|
if show:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user