Fix one-frame EventFrame jank
This commit is contained in:
parent
33014830cd
commit
4b565208f7
1 changed files with 5 additions and 2 deletions
|
@ -2088,11 +2088,14 @@ void MainWindow::updateSelectedObjects() {
|
||||||
|
|
||||||
for (QFrame *frame : frames) {
|
for (QFrame *frame : frames) {
|
||||||
layout->addWidget(frame);
|
layout->addWidget(frame);
|
||||||
|
}
|
||||||
|
layout->addStretch(1);
|
||||||
|
// Show the frames after the vertical spacer is added to avoid visual jank
|
||||||
|
// where the frame would stretch to the bottom of the layout.
|
||||||
|
for (QFrame *frame : frames) {
|
||||||
frame->show();
|
frame->show();
|
||||||
}
|
}
|
||||||
|
|
||||||
layout->addStretch(1);
|
|
||||||
|
|
||||||
ui->label_NoEvents->hide();
|
ui->label_NoEvents->hide();
|
||||||
ui->tabWidget_EventType->show();
|
ui->tabWidget_EventType->show();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue