This commit is contained in:
Kovid Goyal 2014-10-23 08:13:49 +05:30
commit 22281d6e6c

View File

@ -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)