John_R_Ellis's profile
Champion

Champion

 • 

5.9K Messages

 • 

102.3K Points

Mon, Mar 11, 2019 7:44 PM

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

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...

Responses

Adobe Administrator

 • 

10.5K Messages

 • 

140K Points

2 y ago

I've logged this with the team John.
Adobe Photography Products

Quality Engineering - Customer Advocacy