I’m probably missing something obvious here, but I’ve just tripped over an issue drawing plugin dialogs when the Windows display scale is not 100%:
This is in the display control panel:
If that’s set to 100% then my dialogs display as intended:
If it’s at 125% (or anything other than 100%) the contents get scaled, but the dialog size does not:
I’ve tried messing with the values in the Presentation panel on the Interface pane of Photoshop’s preferences, but nothing there seems to make any difference:
I can see discussions on this forum and elsewhere about 6 years ago around something similar, but that was primarily for 4k displays; I’m just looking at 1920x1080. I tripped over this because my main (17") laptop uses 100% by default, but the lower powered 15" machine that I was using for testing uses 125% by default. The problem back then was supposedly solved.
I can’t see any way to read or even to intuit the Windows setting. core.calculateDialogSize always shows the same number (and, indeed, the displayed dialog has the same dimensions. I can’t see how I could reliably get any info from core.getDisplayConfiguration.
Am I missing anything here?
FWIW, I wouldn’t change my 15" laptop to 100% scaling because that makes menus etc too small to read, so I don’t think it’s reasonable to tell users to do that.