Created attachment 129201 [details] Screenshot showing the issue SUMMARY If we open a PDF that has page numbers from say 100 to 105, the 'page number' item shows something like `[101] 2 of 5.`. The 101 inside the box gets cut off since the box is only wide enough to fit a single digit (see attached screenshot). STEPS TO REPRODUCE 1. Open the attached PDF. OBSERVED RESULT The page number entry box in the 'page bar' is not wide enough to show the page number completely. EXPECTED RESULT The page number entry box should be wide enough to fit SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 5.19.0 KDE Frameworks Version: 5.70.0 Qt Version: 5.15.0 Okular version: 1.10.1 (from Help > About Okular) ADDITIONAL INFORMATION The width is set correctly on PDFs that legitimately have 3-digit numbers of pages, so it looks like Okular is setting the width of the box wrongly based on the number of pages in the PDF, and not the internal page numbers used by the file.
Sorry, I couldn't attach the PDF to the report, but it can be downloaded from here: https://ui.adsabs.harvard.edu/link_gateway/1978A&A....65..281R/ADS_PDF
Yes, I suppose this will happen when the window is vary narrow and there are a lot of pages in the PDF. I'll look into it.
Working code for the text box appears to exist in the presentation toolbar. I am not sure how much it is applicable for an XMLGui toolbar, but I think it should work.
(In reply to Nate Graham from comment #2) > Yes, I suppose this will happen when the window is vary narrow and there are > a lot of pages in the PDF. I'll look into it. Any progress on a patch for this one?
No, sorry.
A possibly relevant merge request was started @ https://invent.kde.org/graphics/okular/-/merge_requests/457