Fix one-frame EventFrame jank

This commit is contained in:
Marcus Huderle 2022-10-17 19:37:26 -05:00
parent 33014830cd
commit 4b565208f7

View file

@ -2088,11 +2088,14 @@ void MainWindow::updateSelectedObjects() {
for (QFrame *frame : frames) {
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();
}
layout->addStretch(1);
ui->label_NoEvents->hide();
ui->tabWidget_EventType->show();
}