I have to recreate an old WW project in Ignition and the client asked for keeping it look as much the same as possible.
When I open a popup window in a specific location, I see a strange behaviour. When it's opened the first time after a recent saving the project, the popup window makes the scrollbars appear. However, once I open and close it a few times it behaves the way intended.
I am wondering if any has seen this before and if they have any suggestions
Whenever an update is sent, a bar appears above the window letting the user know that an update is available, and to accomadate the bar, the window is squished vertically a little bit. I wonder if this squishing effects the way the window is scaled following the update.
With regard to correcting the behavior, how is the popup positioned? Are the coordinates hard coded?
I can't tell you how many customers want red for not running and green for running despite my best efforts to convince them that gray-off is far superior.
I'm guessing that bottom row is a docked window, and the -355 is a hard coded y positioning? Perhaps dynamically calculating the y coordinate based upon the popup window height would correct the issue.
Example:
# Get the parent window and create a popup window instance
parentwindow = system.gui.getParentWindow(event)
window = system.nav.openWindowInstance('Line 1/16 Wet Transfer/Level 2/WT_infeedManualControl')
# Center the popup on the parent window,
# ...and place it at the bottom of the window
window.setLocation((parentwindow.width/2 - window.width/2),(parentwindow.height - window.height))
You should be aware that setting a window's location is not referenced to the window that opened it, but to the Vision desktop workspace. If the resulting location plus popup window size exceeds its bounds by even one pixel, the workspace scroll bars will appear.
It looks like you are trying to center the popup on the parent window, but are not accounting for the parent window's location in the desktop space.