Problem positioning HTMLDialog on multiple Monitors

This bug is specific to a multi-monitor environment where the primary monitor is on the right and you are attempting to place the dialog on a monitor to the left. Closing and re-opening the dialog moves it back to the right (primary) monitor.

Sketchup records the Left: position of the dialog as a negative value (as shown in the PrivatePreferences.json file) when you move the dialog to the left monitor. However, it doesn’t appear to handle a negative position when opening the dialog and moves it back to the primary monitor.

The old WebDialog class handles this situation properly.

Sounds like the devs assumed negative values were always invalid, which is easy to do.

If you make an issue in the issue tracker the devs can perhaps fix this: Issues · SketchUp/api-issue-tracker · GitHub

1 Like

Done. Thank you.

1 Like

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.