Skip to content

Size the export dialog to its options and to the monitor it opens on - #100

Merged
marcosqlbi merged 1 commit into
mainfrom
fix/export-dialog-height
Sep 4, 2026
Merged

Size the export dialog to its options and to the monitor it opens on#100
marcosqlbi merged 1 commit into
mainfrom
fix/export-dialog-height

Conversation

@marcosqlbi

Copy link
Copy Markdown
Collaborator

Why

The Export dialog opened at a fixed height. With the PowerPoint options that left a band of nothing under the switches, and on a monitor shorter than the dialog the buttons were off the screen, because the cap was taken from the primary monitor's work area, which is the wrong screen whenever the board is on another.

What changes

  • The height follows the options. The window sizes itself to the options column, and the preview takes that height rather than driving it, so a tall board does not make a tall dialog.
  • The cap is the monitor the board is on. MonitorStartupPlacement.WorkAreaHeight reads the work area of the monitor under the owner window, in the window's own units, and the dialog never exceeds it; past that the options scroll.
  • A regrown window stays on screen. Switching to PDF adds controls and WPF grows the window downward from where it was centred; KeepWithinWorkArea moves it back inside the work area.

Verified by opening the built application, pasting a board, and opening the dialog: it ends where the options end, with no scrollbar and no empty band.

🤖 Generated with Claude Code

The dialog opened at a fixed height, which left the bottom empty with a
short option list and, on a monitor shorter than that height, put the
buttons off the screen: the cap it used was the primary monitor's work
area, the wrong screen whenever the board is on another. The height now
follows the options column, the preview takes the same height rather
than driving it, and the cap is the work area of the monitor the board
is on, past which the options scroll. When a change of format regrows
the window in place, it is moved back inside the screen.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@marcosqlbi
marcosqlbi merged commit 90913b0 into main Sep 4, 2026
5 checks passed
@marcosqlbi
marcosqlbi deleted the fix/export-dialog-height branch September 4, 2026 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant