GUI: Update print preview on dialog resize

This commit is contained in:
tunnelsociety
2026-03-15 22:13:56 -04:00
committed by Eugene Sandulenko
parent c57821cd18
commit 13a0004c30
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -248,4 +248,9 @@ void PrintingDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 dat
}
}
void PrintingDialog::reflowLayout() {
Dialog::reflowLayout();
updatePreview();
}
} // End of namespace GUI
+1
View File
@@ -44,6 +44,7 @@ public:
PrintingDialog(const Graphics::ManagedSurface &surface, bool defaultFitToPage, bool defaultCenter, PageOrientation defaultOrientation);
void handleCommand(CommandSender *sender, uint32 cmd, uint32 data) override;
void reflowLayout() override;
private:
void updatePreview();