pcorless / icepdf

PDF Rendering and Viewing API in Java
Apache License 2.0
84 stars 21 forks source link

javafx version The scroll bar is missing when the window shrinks #322

Open annpeter opened 12 months ago

annpeter commented 12 months ago

The scroll bar is missing when the window shrinks

When the window is big

image

When the window is small

image

pcorless commented 12 months ago

I'll see if I can reproduce it using the example jfx app.

annpeter commented 12 months ago

I'll see if I can reproduce it using the example jfx app.

i just use the example jfx app.

pcorless commented 12 months ago

It's been a while since I looked at this demo but it appears the addition of the JToolbar is causing the layout to have fixed minimum width. The scene window shrinks but the wrapped swing components don't. Layout seems to work better if the toolbar is omitted. It is possible to build up the toolbar using swing nodes, but it's a bit of work.

Ultimately building out a new Viewer RI with JavaFX is the way to go. I'll try and carve out some time in the new year and dust off some old development branch where I had built out JavaFX based page view component.

annpeter commented 11 months ago

In which branch, have you made any progress now.