Bug 356285 - Not enough space for page number
Summary: Not enough space for page number
Status: RESOLVED DUPLICATE of bug 357579
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
: 377299 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-12-04 16:37 UTC by Salvo "LtWorf" Tomaselli
Modified: 2017-03-08 23:59 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
image of the problem (96.89 KB, image/png)
2015-12-04 16:38 UTC, Salvo "LtWorf" Tomaselli
Details
Example of 3 digit page number not fully shown (3.43 KB, image/png)
2017-03-07 07:52 UTC, Unknown
Details
Page number box independent of window size w/o document - small window (24.93 KB, image/png)
2017-03-07 07:53 UTC, Unknown
Details
Page number box independent of window size w/o document - larger window (31.64 KB, image/png)
2017-03-07 07:54 UTC, Unknown
Details
Tex-file with 101 pages as demo (1.09 KB, text/x-tex)
2017-03-08 17:27 UTC, Unknown
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Salvo "LtWorf" Tomaselli 2015-12-04 16:37:57 UTC
I have version 4:15.08.2-1… using oxygen theme.

There is not enough space to show the page numbers.

Reproducible: Always
Comment 1 Salvo "LtWorf" Tomaselli 2015-12-04 16:38:18 UTC
Created attachment 95897 [details]
image of the problem
Comment 2 Gandalf Lechner 2016-01-21 10:02:21 UTC
same problem here - using kubuntu 15.10, fully updated
Comment 3 Albert Astals Cid 2017-03-06 21:05:37 UTC
*** Bug 377299 has been marked as a duplicate of this bug. ***
Comment 4 Albert Astals Cid 2017-03-06 21:07:59 UTC
I can not reproduce this problem, do you do something special when opening the file? Or is it the second file you open? or?
Comment 5 Oliver Sander 2017-03-07 03:08:39 UTC
Albert, did you post to the correct bug?
Comment 6 Unknown 2017-03-07 07:52:22 UTC
Created attachment 104427 [details]
Example of 3 digit page number not fully shown
Comment 7 Unknown 2017-03-07 07:53:48 UTC
Created attachment 104428 [details]
Page number box independent of window size w/o document - small window
Comment 8 Unknown 2017-03-07 07:54:12 UTC
Created attachment 104429 [details]
Page number box independent of window size w/o document - larger window
Comment 9 Unknown 2017-03-07 07:54:57 UTC
As reported in Bug 377299 the situation is somewhat different for me, as it displays 2 digit page numbers correctly, but fails to display more digits. This is due to a fixed text box size. It is independent of the window size and independent of the document, which you view.

An adjustable page number box size would be preferred. If this is not possible, you might consider increasing the width to, lets say, 6 or 7 digits or so.

Okular Version 0.25.0
KDE 4.14.22
Kubuntu 16.04
Comment 10 Oliver Sander 2017-03-07 09:10:11 UTC
I remember seeing something like this in the frameworks branch (which is now in git master).  However, that got fixed eventually (in a commit which I am unable to find now).
Comment 11 Albert Astals Cid 2017-03-07 21:57:11 UTC
> This is due to a fixed text box size.
This is not true.

Without any document open: http://i.imgur.com/S4O5Dti.png
With a document open: http://i.imgur.com/nrvj8X5.png

So stop pretending to know how the code works and start trying to help me reproduce your problem if you want it to be fixed.

Which style are you running?
Comment 12 Unknown 2017-03-08 17:25:53 UTC
I am sorry, I did not want to offend anyone! Many apologies!

And of course you are right.
With the wrong statement I merely wantet to express, what it looks like to me. Sorry for that.

The problem is indeed correlated to a special use case. The problem occurs for me in connection with the Kile Latex Editor.
Here is what I have to do to get the error:
- run Kile
- compile a tex document with >100 pages (will attach minimal example)
- use ViewPDF button to view
- recompile tex --> PDF gets updated
--> see box now

So what it looks like to me is, that the box has the same size as the box which is displayed, when I start Okular without any document.

I was curious if I can create the problem with other programs. So I did the follwing:
- open PDF from before with Okular (everything is fine)
- edit this PDF with pdfshuffler
- view PDF in still open Okular
--> see box now

So it might occur whenever a currently viewed document is reloded due to a change detected?

Thank you for the great software and your time!
Comment 13 Unknown 2017-03-08 17:27:11 UTC
Created attachment 104461 [details]
Tex-file with 101 pages as demo
Comment 14 Unknown 2017-03-08 17:42:05 UTC
Additions:

If I have created the narrow box by methods above, and I collapse or display the left sidebar, the box will go back to the correct size. Hope that helps somehow.

I can reach the even more narrow box reported by "LtWorf", when I have a document less than 10 pages long.

My style is Breeze light as shipped with Kubuntu 16.04. (If I understood "style" correct?)
Comment 15 Albert Astals Cid 2017-03-08 23:59:13 UTC
Fixed in newer versions.

*** This bug has been marked as a duplicate of bug 357579 ***