1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:48:10 +00:00

PDFViewer: Autosize page label

This commit is contained in:
Matthew Olsson 2022-03-31 18:14:54 -07:00 committed by Andreas Kling
parent 2b9ffe2989
commit 1fdcf57c0b

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&) {