mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-06 14:04:57 +01:00
Fit the viewer preferences on 600px screens
Fixes #1186927 [Configuration dialogs too wide on small screens](https://bugs.launchpad.net/calibre/+bug/1186927)
This commit is contained in:
parent
b002773b66
commit
dcbd1550e9
1 changed files with 2 additions and 0 deletions
|
|
@ -15,6 +15,7 @@
|
|||
|
||||
from calibre.constants import iswindows, isxp
|
||||
from calibre.utils.config import Config, StringConfig, JSONConfig
|
||||
from calibre.gui2 import min_available_height
|
||||
from calibre.gui2.shortcuts import ShortcutConfig
|
||||
from calibre.gui2.viewer.config_ui import Ui_Dialog
|
||||
from calibre.utils.localization import get_language
|
||||
|
|
@ -140,6 +141,7 @@ def __init__(self, shortcuts, parent=None):
|
|||
self.init_load_themes()
|
||||
|
||||
self.clear_search_history_button.clicked.connect(self.clear_search_history)
|
||||
self.resize(self.width(), min(self.height(), max(575, min_available_height()-25)))
|
||||
|
||||
def clear_search_history(self):
|
||||
from calibre.gui2 import config
|
||||
|
|
|
|||
Loading…
Reference in a new issue