Windows 11 x64 、 Sketchup 2024
I have two 1080p screens, and Sketchup is usually placed on the right screen.
When I set the right screen as the main screen, I can not find the dialog.
But I can use window sniffing tools to move it over.
I guess the problem should be located in the child window based on the parent window.
dialog = UI::HtmlDialog.new(
{
:dialog_title => "Dialog Example",
:preferences_key => "com.sample.plugin",
:scrollable => true,
:resizable => true,
:width => 600,
:height => 400,
:left => 2000,
:top => 100,
:min_width => 50,
:min_height => 50,
:max_width =>1000,
:max_height => 1000,
:style => UI::HtmlDialog::STYLE_DIALOG
})
dialog.set_url("http://www.sketchup.com")
dialog.show
dialog position of before change
dialog position of after change
use window sniffing tools to move it