Avoid stretching items when number is low.
This commit is contained in:
parent
d29dac14c3
commit
527cfe80d3
4
main.py
4
main.py
@ -148,6 +148,8 @@ class Dialog(QDialog):
|
||||
for item in agenda.no_hour:
|
||||
layout.addWidget(self.build_agenda_task_widget(item))
|
||||
|
||||
layout.addStretch()
|
||||
|
||||
frame = QFrame(self.results)
|
||||
frame.setLayout(layout)
|
||||
self.results.setWidget(frame)
|
||||
@ -204,6 +206,8 @@ class Dialog(QDialog):
|
||||
for note in notes[:MAX_SEARCH_NODES]:
|
||||
layout.addWidget(self.build_note_task_widget(note))
|
||||
|
||||
layout.addStretch()
|
||||
|
||||
frame = QFrame(self.results)
|
||||
frame.setLayout(layout)
|
||||
self.results.setWidget(frame)
|
||||
|
Loading…
Reference in New Issue
Block a user