Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid when window position is negative. #1002

Open
LItterBoy-GB opened this issue Sep 14, 2024 · 0 comments
Open

Invalid when window position is negative. #1002

LItterBoy-GB opened this issue Sep 14, 2024 · 0 comments

Comments

@LItterBoy-GB
Copy link

LItterBoy-GB commented Sep 14, 2024

  1. SketchUp Version: Sketchup 2022
  2. OS Platform: Windows 11 23H2 x64
    When I set the window position to a negative number, it should appear on my left screen, because my right screen is the main monitor.

dialog.set_poistion(-100,100) is valid.

dialog = UI::HtmlDialog.new(
  dialog_title: "Dialog Example",
  width: 600,
  height: 400,
  left: -100,
  top: 100,
  style: UI::HtmlDialog::STYLE_DIALOG
)
dialog.set_url("https://www.sketchup.com")
dialog.show
dialog.get_position
=> [0, 100]

Move the window to the left screen with the mouse

dialog.get_position
=> [-832, 131]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant