mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-23 04:55:35 +01:00
Fix #2574 (Cannot Maximize Calibre Anymore)
This commit is contained in:
parent
e1aec91911
commit
f53c5f3916
1 changed files with 5 additions and 3 deletions
|
|
@ -477,8 +477,9 @@ def __init__(self, listener, opts, actions, parent=None):
|
|||
else:
|
||||
self.status_bar.cover_flow_button.disable(pictureflowerror)
|
||||
|
||||
|
||||
self.setMaximumHeight(max_available_height())
|
||||
self._calculated_available_height = min(max_available_height()-15,
|
||||
self.height())
|
||||
self.resize(self.width(), self._calculated_available_height)
|
||||
|
||||
|
||||
if config['autolaunch_server']:
|
||||
|
|
@ -610,7 +611,8 @@ def toggle_cover_flow(self, show):
|
|||
else:
|
||||
self.cover_flow.setVisible(False)
|
||||
#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):
|
||||
if show:
|
||||
|
|
|
|||
Loading…
Reference in a new issue