Bug #5637
closedcomposite window size & position not always saved
0%
Description
It would be nice if the position and size of a window for a composite actor were saved. I thought this was done in the past, but I went back as far as Ptolemy 7.0.1 and Kepler 2.0, and it does not work.
To reproduce:
1. start Ptolemy or Kepler
2. put composite actor on canvas
3. open composite actor
4. resize and move composite actor's window
5. close composite actor's window
6. save model
The size and position of the composite actor's window are not saved in the model. This configuration is stored in a WindowPropertiesAttribute called "_windowProperties", and is only stored for the top-level composite actor.
However, I have many existing models that do store the size and position for composite actor windows. After some testing, I found that before closing the window in step 5, running File->Save (Ptolemy) or File->Export->XML (Kepler) in the composite actor window does store the size and position for the composite.
To fix this would be to store the size and position for all open composite actor windows regardless if File->Save is used.
Note that in Kepler, File->Save saves the model as a KAR, and this also does not save window size and position, but this is a different problem - see bug 5188.