PDFViewer: Autosize page label

This commit is contained in:
Matthew Olsson 2022-03-31 18:14:54 -07:00 committed by Andreas Kling
commit 1fdcf57c0b
Notes: sideshowbarker 2024-07-17 14:27:18 +09:00

View file

@ -112,7 +112,7 @@ void PDFViewerWidget::initialize_toolbar(GUI::Toolbar& toolbar)
};
m_total_page_label = toolbar.add<GUI::Label>();
m_total_page_label->set_fixed_width(30);
m_total_page_label->set_autosize(true, 5);
toolbar.add_separator();
m_zoom_in_action = GUI::CommonActions::make_zoom_in_action([&](auto&) {