PRImA-Research-Lab / prima-page-viewer

Java based viewer for PAGE XML files (layout + text content). Also supports ALTO XML, FineReader XML, and HOCR.
Apache License 2.0
34 stars 9 forks source link

Zoom in limits the screen #12

Closed ghost closed 4 years ago

ghost commented 4 years ago

@chris1010010

when I zoom more than 100% I can't scroll down, somehow the scroll doesn't adjust to the zoom after 100%

chris1010010 commented 4 years ago

Hi, what platform is it? And what's the image size? Works for me on Win

ghost commented 4 years ago

Linux mint 19.2

home@home-desktop:~$ java --version
openjdk 10.0.2 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4, mixed mode)
chris1010010 commented 4 years ago

And the image size? So no scrolling works (via scroll bar, via mouse wheel, via click + drag)? You said "can't scroll down", can you scroll to the right?

ghost commented 4 years ago

@chris1010010 demo contains the xml+image+small video demo.zip notice in the demo, the more i zoom, the lesser the ability to scroll down. until you can't scroll down. most likely there is a limit on the screen size after you zoom further than 100%

chris1010010 commented 4 years ago

Seems to be a problem with the Linux version then. I can zoom in all the way to the page number in Win without problem.

image

ghost commented 4 years ago

hmmmmm.... you might be right, OpenJDK can act funny at times.

chris1010010 commented 4 years ago

Might have to do with the SWT library. If I were to start the PageViewer today I'd probably use Swing. Let's leave the issue open, perhaps someone else has input...

ghost commented 4 years ago

@chris1010010 that's weird, on linux i have tested using oracle java and still having this issue. On Windows everything seems fine??

chris1010010 commented 4 years ago

The problem is the swt library the code is based on (see lib folder). Independent of the Java version, it will always use that library (which is old). I haven't checked if there's a new version, but I doubt it