OpenBoard-org / OpenBoard

OpenBoard is a cross-platform interactive whiteboard application intended for use in a classroom setting.
https://openboard.ch/
GNU General Public License v3.0
2.34k stars 423 forks source link

[Bug] Resizing to 16/9 with `Page Size` leaves massive margins #1008

Open Vekhir opened 3 months ago

Vekhir commented 3 months ago

Describe the bug

In the menu OpenBoard -> Page Size, there is an option to resize the page to 16/9. Using it on imported PDFs with that ratio (which still get a custom size) leads to large margins on each side. This happens on single and dual-monitor setups.

To Reproduce

  1. Import test_resize (2 slides á 1920x1080)
  2. Click on OpenBoard -> Page Size -> Wide Size (16/9)
  3. Zoom out to see border

Expected behavior

The slides should fit exactly inside the border

Actual behavior

Resizing to 16/9, the slide has about a 10% margin on each side and is centered in the middle.

Resizing to 4/3 has a similar behaviour. The slide size does not change when resizing between 16/9 and 4/3 - only the border changes.

Additional resources

Test data: test_resize.zip

Screenshots

After 1. import: before

After 2. resize wide (16/9): after

After zooming out (16/9): after-zoom

After resize regular (4/3): after-4x3

After zooming out (4/3): after-4x3-zoom

Context

Additional context

OS: Arch Linux Kernel: Linux 6.9.3-arch1-1

a) number and resolution of monitors : 2 x 1920x1080, b) number and resolution of monitors: 1 x 1920x1080

gzavarise commented 3 months ago

I got the same problem on MAC and a Wacom Cintiq 16. This bug is a real tragedy, since all my files now are not correctly visible. however the generated pdf ik still ok. I enclose a Cintiq 16 screen screenshot (wrong view), and the one of the pdf generated file (still ok).

from cintiq 16 screen

Screenshot 2024-06-20 alle 01 27 20
Vekhir commented 3 months ago

@gzavarise I believe you are encountering a different issue, namely #846. Note how your image is cut off by grey borders, but no significant scaling is happening like in my screenshots above. If you are technically inclined, you may try out PR #901.