Skip to content
Verified Commit 6bf33234 authored by Marco De Donno's avatar Marco De Donno
Browse files

Set the size of the PFSP dialog automatically to 70% of the windows height

This will first compute the size of the window, and set the height of
the dialog to 70% of the window, plus the 140px of decorations.

The width of the dialog is computed based upon the width of the image
plus 33px of decorations. The width is computed by multiplying the
height (70% of the windows height) by the width/height ratio of the
original image.

At the end, once the dialog size computed, the size of the internal
image is updated to reflect the size of the dialog. This is done this
way (instead of setting the size of the dialog to automatic) because of
the placement issues accruing if the size of the dialog box is not
precomputed.

Hacky, but seems to works.
parent e37d6291
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment