parent
9649884add
commit
8d7fcf41da
@ -232,8 +232,8 @@ class MainWindow(QWidget):
|
|||||||
width = self.width() - 2 * padding
|
width = self.width() - 2 * padding
|
||||||
left = padding
|
left = padding
|
||||||
else:
|
else:
|
||||||
width = size_hint.width()
|
width = min(size_hint.width(), self.width() - 2 * padding)
|
||||||
left = (self.width() - size_hint.width()) / 2 if centered else 0
|
left = (self.width() - width) / 2 if centered else 0
|
||||||
|
|
||||||
height_padding = 20
|
height_padding = 20
|
||||||
status_position = config.get('ui', 'status-position')
|
status_position = config.get('ui', 'status-position')
|
||||||
|
Loading…
Reference in New Issue
Block a user