mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Use the size hint for initial size
This commit is contained in:
parent
0c6baca2d1
commit
c7a81cd379
@ -89,7 +89,7 @@ class WebView(QWebEngineView): # {{{
|
||||
self.setUrl(QUrl.fromLocalFile(path))
|
||||
|
||||
def sizeHint(self):
|
||||
return QSize(1500, 300)
|
||||
return QSize(300, 300)
|
||||
|
||||
def contextMenuEvent(self, ev):
|
||||
pass
|
||||
|
@ -1023,7 +1023,7 @@ class TOCEditor(QDialog): # {{{
|
||||
self.explode_done.connect(self.read_toc, type=Qt.QueuedConnection)
|
||||
self.writing_done.connect(self.really_accept, type=Qt.QueuedConnection)
|
||||
|
||||
self.resize(950, 630)
|
||||
self.resize(self.sizeHint())
|
||||
geom = self.prefs.get('toc_editor_window_geom', None)
|
||||
if geom is not None:
|
||||
QApplication.instance().safe_restore_geometry(self, bytes(geom))
|
||||
|
Loading…
x
Reference in New Issue
Block a user