Skip to main content
johnrellis
Legend
March 11, 2019

P: SDK: LrSystemInfo.appWindowSize() returns incorrect values for height

  • March 11, 2019
  • 1 reply
  • 161 views

LrSystemInfo.appWindowSize() returns incorrect values for height depending on Window > Screen Mode, making it impossible for plugins to know the maximum size of windows they can create. Since the SDK doesn't report the current screen mode, it's impossible for plugins to know the precise maximum size.

The following tables show the heights returned by appWindowSize() for the combinations of operating system, the operating-system display scaling, and LR's Screen Mode.  "Useable window height" is the height of that part of the app window that SDK dialogs can occupy.  Erroneous return values are in red.

Mac OS 10.14.3:


Windows 10:


A related bug is that Windows appWindowSize() and displayInfo() report units in physical pixels, rather than the scaled pixels used by LrView. (The Mac SDK doesn't have the bug.)  This makes it doubly hard for plugins to know the maximum size of windows they can create:

https://feedback.photoshop.com/photoshop_family/topics/lightroom-lrsysteminfo-displayinfo-returns-wr...

This topic has been closed for replies.

1 reply

Rikk Flohr_Photography
Community Manager
March 12, 2019
I've logged this with the team John.
Rikk Flohr: Adobe Photography Org