mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Prevent completion dialog from being cut off if window not maximized
This commit is contained in:
parent
5674dd141e
commit
678531097b
@ -273,10 +273,10 @@ class ProceedQuestion(QWidget):
|
|||||||
|
|
||||||
def position_widget(self):
|
def position_widget(self):
|
||||||
geom = self.parent().geometry()
|
geom = self.parent().geometry()
|
||||||
x = geom.right() - self.width()
|
x = geom.width() - self.width()
|
||||||
sb = self.parent().statusBar()
|
sb = self.parent().statusBar()
|
||||||
if sb is None:
|
if sb is None:
|
||||||
y = geom.bottom() - self.height()
|
y = geom.height() - self.height()
|
||||||
else:
|
else:
|
||||||
y = sb.geometry().top() - self.height()
|
y = sb.geometry().top() - self.height()
|
||||||
self.move(x, y)
|
self.move(x, y)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user