I noticed a small bug regarding the new htmldialog and a combobox in Win7X64 & SketchUp 2017
Using the code below - see pics:
after launching the code the html dialog opens.
if you move the html dialog and open the combobox at the new position - the combobox will show its content at the previous position. Opening it again will use the proper position.
If someone knows a workaround (until this is fixed) that would be very nice…
The only workaround I could imagine, is to reload the page, or hide then re-show the window.
That would entail detecting when the window moves. And there is no such event callback for the window.
The only thing would be to detect an onMouseOut event for the <body> element and save the window’s current position, then also a onMouseIn event for the <body> element, to check if the position changed.
In the onMouseOut event handler, you would need to call a method that stores the current window position, using a platform specific system call. (Jim Foltz has posted examples using the GetWindowRect() function over at SCF.)
In the onMouseIn event handler, you would need to call that method again, and compare the position to that which was previously stored. If the position changed, then reload the webpage, or hide then re-show the dialog window. (Whichever works better.)
@john_drivenupthewall I tested your plugin: same result and no tooltips on the ‘?’ buttons. @DanRathbun Thanks for the suggestion: I will have a look at the implications. Rather hoping the upcoming Maintenance could fix this and the slow opening issue of the new htmldialogs as well.