I am having this problem where my popups are sporadic in their resizing on the internalFrameActivated
event Handler. I am using client tags to store the values that they will resize to. It works great most of the time but if the tag read takes a little bit longer than the allotted time then it doesn’t work initially. If the popup or client refreshes after that it works good again.
I couldn’t figure out how to put it into a function and run invokeLater on it as the size objects weren’t passing through it but is there a way I could nest that into an invokeLater, or something similar, and still have the code run in the correct order?
code:
import time
from java.awt import Dimension
time.sleep(0.5)
H = system.gui.getParentWindow(event).getComponentForPath('RootContainer').TemplateHeight
W = system.gui.getParentWindow(event).getComponentForPath('RootContainer').TemplateWidth
value = Dimension(width=W,height=H)
system.gui.getParentWindow(event).getComponentForPath('_parent').size = value