diff options
author | Matthew Olsson <matthewcolsson@gmail.com> | 2022-03-31 18:14:54 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-04-04 14:59:37 +0200 |
commit | 1fdcf57c0bad53ad08b983206741774a83f2d048 (patch) | |
tree | 387447f6d2692a65c7825eea90ddad76a7378f6f | |
parent | 2b9ffe2989f668f241973b07a05a01c43a1b18a2 (diff) | |
download | serenity-1fdcf57c0bad53ad08b983206741774a83f2d048.zip |
PDFViewer: Autosize page label
-rw-r--r-- | Userland/Applications/PDFViewer/PDFViewerWidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/PDFViewer/PDFViewerWidget.cpp b/Userland/Applications/PDFViewer/PDFViewerWidget.cpp index 2dd8719421..339d69bc29 100644 --- a/Userland/Applications/PDFViewer/PDFViewerWidget.cpp +++ b/Userland/Applications/PDFViewer/PDFViewerWidget.cpp @@ -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&) { |