mirror of
https://github.com/huderlem/porymap.git
synced 2026-08-19 23:25:09 -05:00
Fix one-frame EventFrame jank
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user